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; |
} |