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

Unified Diff: content/renderer/gpu/gpu_channel_host.cc

Issue 7205012: RendererGLContext supports reparenting a GL context. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 89700)
+++ content/renderer/gpu/gpu_channel_host.cc (working copy)
@@ -139,11 +139,9 @@
}
CommandBufferProxy* GpuChannelHost::CreateOffscreenCommandBuffer(
- CommandBufferProxy* parent,
const gfx::Size& size,
const std::string& allowed_extensions,
const std::vector<int32>& attribs,
- uint32 parent_texture_id,
const GURL& active_url) {
#if defined(ENABLE_GPU)
// An error occurred. Need to get the host again to reinitialize it.
@@ -154,12 +152,9 @@
init_params.allowed_extensions = allowed_extensions;
init_params.attribs = attribs;
init_params.active_url = active_url;
- int32 parent_route_id = parent ? parent->route_id() : 0;
int32 route_id;
- if (!Send(new GpuChannelMsg_CreateOffscreenCommandBuffer(parent_route_id,
- size,
+ if (!Send(new GpuChannelMsg_CreateOffscreenCommandBuffer(size,
init_params,
- parent_texture_id,
&route_id))) {
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698