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

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

Issue 7554015: Implemented support for GL constext share groups in the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
Index: content/common/gpu/gpu_channel.cc
===================================================================
--- content/common/gpu/gpu_channel.cc (revision 95161)
+++ content/common/gpu/gpu_channel.cc (working copy)
@@ -189,12 +189,22 @@
content::GetContentClient()->SetActiveURL(init_params.active_url);
#if defined(ENABLE_GPU)
+ GpuCommandBufferStub* share_group = stubs_.Lookup(init_params.share_group_id);
+
*route_id = GenerateRouteID();
scoped_ptr<GpuCommandBufferStub> stub(new GpuCommandBufferStub(
- this, window, gfx::Size(), disallowed_extensions_,
+ this,
+ share_group,
+ window,
+ gfx::Size(),
+ disallowed_extensions_,
init_params.allowed_extensions,
- init_params.attribs, *route_id, renderer_id_, render_view_id,
- watchdog_, software_));
+ init_params.attribs,
+ *route_id,
+ renderer_id_,
+ render_view_id,
+ watchdog_,
+ software_));
router_.AddRoute(*route_id, stub.get());
stubs_.AddWithID(stub.release(), *route_id);
#endif // ENABLE_GPU
@@ -293,10 +303,13 @@
content::GetContentClient()->SetActiveURL(init_params.active_url);
#if defined(ENABLE_GPU)
+ GpuCommandBufferStub* share_group = stubs_.Lookup(init_params.share_group_id);
+
route_id = GenerateRouteID();
scoped_ptr<GpuCommandBufferStub> stub(new GpuCommandBufferStub(
this,
+ share_group,
gfx::kNullPluginWindow,
size,
disallowed_extensions_,
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.h » ('j') | content/renderer/gpu/renderer_gl_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698