summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/context_group.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/context_group.h')
-rw-r--r--gpu/command_buffer/service/context_group.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 21fc061..a38f369 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -6,6 +6,7 @@
#define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_
#include <map>
+#include <string>
#include "base/basictypes.h"
#include "base/linked_ptr.h"
#include "base/scoped_ptr.h"
@@ -96,7 +97,13 @@ class ContextGroup {
return &validators_;
}
+ const std::string& extensions() const {
+ return extensions_;
+ }
+
private:
+ void AddExtensionString(const std::string& str);
+
// Whether or not this context is initialized.
bool initialized_;
@@ -125,6 +132,9 @@ class ContextGroup {
Validators validators_;
+ // The extensions string returned by glGetString(GL_EXTENSIONS);
+ std::string extensions_;
+
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
};