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

Side by Side Diff: ppapi/proxy/ppb_graphics_2d_proxy.cc

Issue 7623018: Move host resource from the proxy to the shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_graphics_2d_proxy.h ('k') | ppapi/proxy/ppb_graphics_3d_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ppapi/proxy/ppb_graphics_2d_proxy.h" 5 #include "ppapi/proxy/ppb_graphics_2d_proxy.h"
6 6
7 #include <string.h> // For memset. 7 #include <string.h> // For memset.
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "ppapi/c/pp_completion_callback.h" 11 #include "ppapi/c/pp_completion_callback.h"
12 #include "ppapi/c/pp_errors.h" 12 #include "ppapi/c/pp_errors.h"
13 #include "ppapi/c/pp_resource.h" 13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/c/ppb_graphics_2d.h" 14 #include "ppapi/c/ppb_graphics_2d.h"
15 #include "ppapi/proxy/enter_proxy.h" 15 #include "ppapi/proxy/enter_proxy.h"
16 #include "ppapi/proxy/plugin_dispatcher.h" 16 #include "ppapi/proxy/plugin_dispatcher.h"
17 #include "ppapi/proxy/plugin_resource.h" 17 #include "ppapi/proxy/plugin_resource.h"
18 #include "ppapi/proxy/ppapi_messages.h" 18 #include "ppapi/proxy/ppapi_messages.h"
19 #include "ppapi/thunk/enter.h" 19 #include "ppapi/thunk/enter.h"
20 #include "ppapi/thunk/ppb_graphics_2d_api.h" 20 #include "ppapi/thunk/ppb_graphics_2d_api.h"
21 #include "ppapi/thunk/thunk.h" 21 #include "ppapi/thunk/thunk.h"
22 22
23 using ::ppapi::thunk::PPB_Graphics2D_API; 23 using ppapi::HostResource;
24 using ppapi::thunk::PPB_Graphics2D_API;
24 25
25 namespace pp { 26 namespace pp {
26 namespace proxy { 27 namespace proxy {
27 28
28 namespace { 29 namespace {
29 30
30 InterfaceProxy* CreateGraphics2DProxy(Dispatcher* dispatcher, 31 InterfaceProxy* CreateGraphics2DProxy(Dispatcher* dispatcher,
31 const void* target_interface) { 32 const void* target_interface) {
32 return new PPB_Graphics2D_Proxy(dispatcher, target_interface); 33 return new PPB_Graphics2D_Proxy(dispatcher, target_interface);
33 } 34 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 257
257 void PPB_Graphics2D_Proxy::SendFlushACKToPlugin( 258 void PPB_Graphics2D_Proxy::SendFlushACKToPlugin(
258 int32_t result, 259 int32_t result,
259 const HostResource& graphics_2d) { 260 const HostResource& graphics_2d) {
260 dispatcher()->Send(new PpapiMsg_PPBGraphics2D_FlushACK( 261 dispatcher()->Send(new PpapiMsg_PPBGraphics2D_FlushACK(
261 INTERFACE_ID_PPB_GRAPHICS_2D, graphics_2d, result)); 262 INTERFACE_ID_PPB_GRAPHICS_2D, graphics_2d, result));
262 } 263 }
263 264
264 } // namespace proxy 265 } // namespace proxy
265 } // namespace pp 266 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_graphics_2d_proxy.h ('k') | ppapi/proxy/ppb_graphics_3d_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698