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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.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 | « ppapi/shared_impl/graphics_3d_impl.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index 9b590324cf958ac061c4526564a84f0acc2921ed..2ac1dedccd96f1012951d9969c190112514db123 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -464,12 +464,14 @@ bool GLInProcessContext::Initialize(bool onscreen,
if (!command_buffer_->Initialize(kCommandBufferSize))
return false;
+ // TODO(gman): This needs to be true if this is Pepper.
+ bool bind_generates_resource = false;
gpu_scheduler_ = GpuScheduler::Create(
command_buffer_.get(),
NULL,
context_group ?
context_group->gpu_scheduler_->decoder()->GetContextGroup() :
- new ::gpu::gles2::ContextGroup);
+ new ::gpu::gles2::ContextGroup(bind_generates_resource));
if (onscreen) {
if (render_surface == gfx::kNullPluginWindow) {
@@ -543,7 +545,8 @@ bool GLInProcessContext::Initialize(bool onscreen,
transfer_buffer.size,
transfer_buffer.ptr,
transfer_buffer_id_,
- true);
+ true,
+ false);
size_ = size;
« no previous file with comments | « ppapi/shared_impl/graphics_3d_impl.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698