Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: gpu/command_buffer/service/context_group.h

Issue 7633060: Add option to not generate resources on bind in OpenGL ES (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nacl fix Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/common/id_allocator.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_group.h
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index a2e63828c5386ab7a197c4d918b373788abe7a2f..f130dc6ff6b50a811f989d02f50902cd555c87d9 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -36,7 +36,7 @@ class ContextGroup : public base::RefCounted<ContextGroup> {
public:
typedef scoped_refptr<ContextGroup> Ref;
- ContextGroup();
+ explicit ContextGroup(bool bind_generates_resource);
~ContextGroup();
// This should only be called by GLES2Decoder.
@@ -48,6 +48,10 @@ class ContextGroup : public base::RefCounted<ContextGroup> {
have_context_ = have_context;
}
+ bool bind_generates_resource() {
+ return bind_generates_resource_;
+ }
+
uint32 max_vertex_attribs() const {
return max_vertex_attribs_;
}
@@ -113,6 +117,7 @@ class ContextGroup : public base::RefCounted<ContextGroup> {
// Whether or not this context is initialized.
bool initialized_;
bool have_context_;
+ bool bind_generates_resource_;
uint32 max_vertex_attribs_;
uint32 max_texture_units_;
« no previous file with comments | « gpu/command_buffer/common/id_allocator.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698