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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

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 | « no previous file | content/renderer/gpu/renderer_gl_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index b37e787e6716f2132dcf54e6f0a5b3eab147f79e..73d16c6088847bfcfcb848761cba18f083cac5bd 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -55,10 +55,13 @@ GpuCommandBufferStub::GpuCommandBufferStub(
parent_texture_for_initialization_(0),
watchdog_(watchdog),
task_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
- if (share_group)
+ if (share_group) {
context_group_ = share_group->context_group_;
- else
- context_group_ = new gpu::gles2::ContextGroup;
+ } else {
+ // TODO(gman): this needs to be false for everything but Pepper.
+ bool bind_generates_resource = true;
+ context_group_ = new gpu::gles2::ContextGroup(bind_generates_resource);
+ }
}
GpuCommandBufferStub::~GpuCommandBufferStub() {
« no previous file with comments | « no previous file | content/renderer/gpu/renderer_gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698