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

Unified Diff: content/renderer/pepper_platform_context_3d_impl.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/pepper_platform_context_3d_impl.cc
===================================================================
--- content/renderer/pepper_platform_context_3d_impl.cc (revision 89700)
+++ content/renderer/pepper_platform_context_3d_impl.cc (working copy)
@@ -75,14 +75,16 @@
CommandBufferProxy* parent_command_buffer =
parent_context_->GetCommandBufferProxy();
command_buffer_ = channel_->CreateOffscreenCommandBuffer(
- parent_command_buffer,
gfx::Size(1, 1),
"*",
attribs,
- parent_texture_id_,
GURL::EmptyGURL());
if (!command_buffer_)
return false;
+
+ if (!command_buffer_->SetParent(parent_command_buffer, parent_texture_id_))
piman 2011/06/22 00:53:27 Actually this broke pepper. At this point the GpuC
apatrick_chromium 2011/06/22 17:53:14 Okay I'll look into it.
+ return false;
+
command_buffer_->SetChannelErrorCallback(callback_factory_.NewCallback(
&PlatformContext3DImpl::OnContextLost));

Powered by Google App Engine
This is Rietveld 408576698