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

Side by Side Diff: content/renderer/browser_plugin/old/guest_to_embedder_channel.cc

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase upstream Created 8 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h" 5 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h"
6 6
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "content/common/child_process.h" 8 #include "content/common/child_process.h"
9 #include "content/common/old_browser_plugin_messages.h" 9 #include "content/common/old_browser_plugin_messages.h"
10 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" 10 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 ppapi::HostResource(), 181 ppapi::HostResource(),
182 attribs, 182 attribs,
183 &resource)); 183 &resource));
184 if (!success || resource.is_null()) 184 if (!success || resource.is_null())
185 return false; 185 return false;
186 if (!offscreen) { 186 if (!offscreen) {
187 PP_Bool result = PP_FALSE; 187 PP_Bool result = PP_FALSE;
188 Send(new PpapiHostMsg_PPBInstance_BindGraphics( 188 Send(new PpapiHostMsg_PPBInstance_BindGraphics(
189 ppapi::API_ID_PPB_INSTANCE, 189 ppapi::API_ID_PPB_INSTANCE,
190 render_view->guest_pp_instance(), 190 render_view->guest_pp_instance(),
191 resource, 191 resource.host_resource(),
192 &result)); 192 &result));
193 if (result != PP_TRUE) 193 if (result != PP_TRUE)
194 return false; 194 return false;
195 } 195 }
196 196
197 CommandBufferProxy* command_buffer = 197 CommandBufferProxy* command_buffer =
198 new ppapi::proxy::PpapiCommandBufferProxy(resource, this); 198 new ppapi::proxy::PpapiCommandBufferProxy(resource, this);
199 command_buffer->Initialize(); 199 command_buffer->Initialize();
200 context->InitializeWithCommandBuffer( 200 context->InitializeWithCommandBuffer(
201 command_buffer, 201 command_buffer,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 } 308 }
309 309
310 void GuestToEmbedderChannel::OnGuestReady(PP_Instance instance, 310 void GuestToEmbedderChannel::OnGuestReady(PP_Instance instance,
311 int embedder_container_id) { 311 int embedder_container_id) {
312 RenderThreadImpl::current()->browser_plugin_channel_manager()-> 312 RenderThreadImpl::current()->browser_plugin_channel_manager()->
313 GuestReady(instance, embedder_channel_name(), embedder_container_id); 313 GuestReady(instance, embedder_channel_name(), embedder_container_id);
314 } 314 }
315 315
316 } // namespace old 316 } // namespace old
317 } // namespace content 317 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698