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

Unified Diff: content/renderer/browser_plugin/guest_to_embedder_channel.cc

Issue 10386145: Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, whic… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments; clean up; fix bugs. Created 8 years, 7 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 | « no previous file | content/renderer/pepper/pepper_platform_context_3d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/guest_to_embedder_channel.cc
diff --git a/content/renderer/browser_plugin/guest_to_embedder_channel.cc b/content/renderer/browser_plugin/guest_to_embedder_channel.cc
index 1f9f6a78b5823b685d9f3b765ef56dd6459e6a87..4cb8bf808554c4eafc6f5e969b9ef481b1c6a36f 100644
--- a/content/renderer/browser_plugin/guest_to_embedder_channel.cc
+++ b/content/renderer/browser_plugin/guest_to_embedder_channel.cc
@@ -164,6 +164,8 @@ bool GuestToEmbedderChannel::CreateGraphicsContext(
bool success = Send(new PpapiHostMsg_PPBGraphics3D_Create(
ppapi::API_ID_PPB_GRAPHICS_3D,
render_view->guest_pp_instance(),
+ offscreen ? render_view->guest_graphics_resource()
+ : ppapi::HostResource(),
piman 2012/05/24 23:10:08 No, you should pass here the WebGraphicsContext3DC
(scshunt) 2012/05/24 23:18:07 I'm going to be changing this up a lot here now th
attribs,
&resource));
if (!success || resource.is_null())
@@ -177,6 +179,7 @@ bool GuestToEmbedderChannel::CreateGraphicsContext(
&result));
if (result != PP_TRUE)
return false;
+ render_view->set_guest_graphics_resource(resource);
piman 2012/05/24 23:10:08 err, what if we have more than 1 "onscreen" contex
(scshunt) 2012/05/24 23:18:07 This is actually an unrelated fix, and is an impro
Fady Samuel 2012/05/24 23:19:00 PpapiCommandBufferProxy knows about its HostResour
}
CommandBufferProxy* command_buffer =
@@ -186,7 +189,6 @@ bool GuestToEmbedderChannel::CreateGraphicsContext(
command_buffer,
attributes,
false /* bind generates resources */);
- render_view->set_guest_graphics_resource(resource);
return true;
}
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_platform_context_3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698