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

Side by Side Diff: ppapi/proxy/ppp_graphics_3d_proxy.h

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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
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 #ifndef PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_
6 #define PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ 6 #define PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/proxy/interface_proxy.h" 9 #include "ppapi/proxy/interface_proxy.h"
10 #include "ppapi/shared_impl/host_resource.h"
10 11
11 struct PPP_Graphics3D_Dev; 12 struct PPP_Graphics3D_Dev;
12 13
13 namespace pp { 14 namespace pp {
14 namespace proxy { 15 namespace proxy {
15 16
16 class PPP_Graphics3D_Proxy : public InterfaceProxy { 17 class PPP_Graphics3D_Proxy : public InterfaceProxy {
17 public: 18 public:
18 PPP_Graphics3D_Proxy(Dispatcher* dispatcher, const void* target_interface); 19 PPP_Graphics3D_Proxy(Dispatcher* dispatcher, const void* target_interface);
19 virtual ~PPP_Graphics3D_Proxy(); 20 virtual ~PPP_Graphics3D_Proxy();
20 21
21 static const Info* GetInfo(); 22 static const Info* GetInfo();
22 23
23 const PPP_Graphics3D_Dev* ppp_graphics_3d_target() const { 24 const PPP_Graphics3D_Dev* ppp_graphics_3d_target() const {
24 return reinterpret_cast<const PPP_Graphics3D_Dev*>(target_interface()); 25 return reinterpret_cast<const PPP_Graphics3D_Dev*>(target_interface());
25 } 26 }
26 27
27 // InterfaceProxy implementation. 28 // InterfaceProxy implementation.
28 virtual bool OnMessageReceived(const IPC::Message& msg); 29 virtual bool OnMessageReceived(const IPC::Message& msg);
29 30
30 private: 31 private:
31 // Message handlers. 32 // Message handlers.
32 void OnMsgContextLost(PP_Instance instance); 33 void OnMsgContextLost(PP_Instance instance);
33 }; 34 };
34 35
35 } // namespace proxy 36 } // namespace proxy
36 } // namespace pp 37 } // namespace pp
37 38
38 #endif // PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_ 39 #endif // PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698