Chromium Code Reviews| Index: content/renderer/browser_plugin/old/browser_plugin.cc |
| diff --git a/content/renderer/browser_plugin/old/browser_plugin.cc b/content/renderer/browser_plugin/old/browser_plugin.cc |
| index af340e7bbeff59dd03f1173693ee6cb5b857fb36..987453d63d107edda1856c4cb7227534374eea29 100644 |
| --- a/content/renderer/browser_plugin/old/browser_plugin.cc |
| +++ b/content/renderer/browser_plugin/old/browser_plugin.cc |
| @@ -83,11 +83,25 @@ BrowserPlugin::BrowserPlugin( |
| ParseSrcAttribute("", &src); |
| if (!src.empty()) { |
| - render_view->Send(new BrowserPluginHostMsg_NavigateFromEmbedder( |
| - render_view->GetRoutingID(), |
| - id_, |
| - frame->identifier(), |
| - src)); |
| + WebKit::WebView* web_view = render_view->webview(); |
|
Fady Samuel
2012/07/06 15:14:44
Given you're now applying changes to the new desig
|
| + if (web_view) { |
| + WebGraphicsContext3DCommandBufferImpl* context = static_cast<WebGraphicsContext3DCommandBufferImpl*>(web_view->sharedGraphicsContext3D()); |
| + DCHECK(context); |
| + BrowserPluginHostMsg_Surface_Params params; |
| + params.gpu_process_id = context->GetGPUProcessID(); |
| + params.client_id = context->GetChannelID(); |
| + params.context_id = context->GetContextID(); |
| + params.texture_id[0] = context->createTexture(); |
| + params.texture_id[1] = context->createTexture(); |
| + params.sync_point = context->insertSyncPoint(); |
| + printf("Giving guest textures %u and %u\n", params.texture_id[0], params.texture_id[1]); |
| + render_view->Send(new BrowserPluginHostMsg_NavigateFromEmbedder( |
| + render_view->GetRoutingID(), |
| + id_, |
| + frame->identifier(), |
| + src, |
| + params)); |
| + } |
| } |
| } |