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

Unified Diff: content/renderer/gpu/gpu_channel_host.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/renderer/gpu/gpu_channel_host.cc
===================================================================
--- content/renderer/gpu/gpu_channel_host.cc (revision 95161)
+++ content/renderer/gpu/gpu_channel_host.cc (working copy)
@@ -97,6 +97,7 @@
CommandBufferProxy* GpuChannelHost::CreateViewCommandBuffer(
int render_view_id,
+ CommandBufferProxy* share_group,
const std::string& allowed_extensions,
const std::vector<int32>& attribs,
const GURL& active_url) {
@@ -106,13 +107,17 @@
return NULL;
GPUCreateCommandBufferConfig init_params;
+ init_params.share_group_id =
+ share_group ? share_group->route_id() : MSG_ROUTING_NONE;
init_params.allowed_extensions = allowed_extensions;
init_params.attribs = attribs;
init_params.active_url = active_url;
int32 route_id;
if (!RenderThread::current()->Send(
new GpuHostMsg_CreateViewCommandBuffer(
- render_view_id, init_params, &route_id))) {
+ render_view_id,
+ init_params,
+ &route_id))) {
return NULL;
}
@@ -140,6 +145,7 @@
CommandBufferProxy* GpuChannelHost::CreateOffscreenCommandBuffer(
const gfx::Size& size,
+ CommandBufferProxy* share_group,
const std::string& allowed_extensions,
const std::vector<int32>& attribs,
const GURL& active_url) {
@@ -149,6 +155,8 @@
return NULL;
GPUCreateCommandBufferConfig init_params;
+ init_params.share_group_id =
+ share_group ? share_group->route_id() : MSG_ROUTING_NONE;
init_params.allowed_extensions = allowed_extensions;
init_params.attribs = attribs;
init_params.active_url = active_url;

Powered by Google App Engine
This is Rietveld 408576698