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

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

Issue 8527020: Cleanup: Remove unneeded forward declarations in ppapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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_font_proxy.h ('k') | ppapi/proxy/ppb_text_input_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 #ifndef PPAPI_PPB_SURFACE_3D_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_SURFACE_3D_PROXY_H_
6 #define PPAPI_PPB_SURFACE_3D_PROXY_H_ 6 #define PPAPI_PROXY_PPB_SURFACE_3D_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
11 #include "ppapi/c/pp_graphics_3d.h" 11 #include "ppapi/c/pp_graphics_3d.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/cpp/completion_callback.h" 13 #include "ppapi/cpp/completion_callback.h"
14 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
16 #include "ppapi/shared_impl/resource.h" 16 #include "ppapi/shared_impl/resource.h"
17 #include "ppapi/thunk/ppb_surface_3d_api.h" 17 #include "ppapi/thunk/ppb_surface_3d_api.h"
18 18
19 struct PPB_Surface3D_Dev;
20
21 namespace ppapi { 19 namespace ppapi {
22 namespace proxy { 20 namespace proxy {
23 21
24 class Context3D; 22 class Context3D;
25 23
26 class Surface3D : public ppapi::Resource, 24 class Surface3D : public ppapi::Resource,
27 public ppapi::thunk::PPB_Surface3D_API { 25 public ppapi::thunk::PPB_Surface3D_API {
28 public: 26 public:
29 explicit Surface3D(const ppapi::HostResource& host_resource); 27 explicit Surface3D(const ppapi::HostResource& host_resource);
30 virtual ~Surface3D(); 28 virtual ~Surface3D();
(...skipping 25 matching lines...) Expand all
56 54
57 // In the plugin, this is the current callback set for Flushes. When the 55 // In the plugin, this is the current callback set for Flushes. When the
58 // callback function pointer is non-NULL, we're waiting for a flush ACK. 56 // callback function pointer is non-NULL, we're waiting for a flush ACK.
59 PP_CompletionCallback current_flush_callback_; 57 PP_CompletionCallback current_flush_callback_;
60 58
61 DISALLOW_COPY_AND_ASSIGN(Surface3D); 59 DISALLOW_COPY_AND_ASSIGN(Surface3D);
62 }; 60 };
63 61
64 class PPB_Surface3D_Proxy : public InterfaceProxy { 62 class PPB_Surface3D_Proxy : public InterfaceProxy {
65 public: 63 public:
66 PPB_Surface3D_Proxy(Dispatcher* dispatcher); 64 explicit PPB_Surface3D_Proxy(Dispatcher* dispatcher);
67 virtual ~PPB_Surface3D_Proxy(); 65 virtual ~PPB_Surface3D_Proxy();
68 66
69 static const Info* GetInfo(); 67 static const Info* GetInfo();
70 68
71 static PP_Resource CreateProxyResource(PP_Instance instance, 69 static PP_Resource CreateProxyResource(PP_Instance instance,
72 PP_Config3D_Dev config, 70 PP_Config3D_Dev config,
73 const int32_t* attrib_list); 71 const int32_t* attrib_list);
74 72
75 // InterfaceProxy implementation. 73 // InterfaceProxy implementation.
76 virtual bool OnMessageReceived(const IPC::Message& msg); 74 virtual bool OnMessageReceived(const IPC::Message& msg);
(...skipping 14 matching lines...) Expand all
91 void SendSwapBuffersACKToPlugin(int32_t result, 89 void SendSwapBuffersACKToPlugin(int32_t result,
92 const ppapi::HostResource& surface_3d); 90 const ppapi::HostResource& surface_3d);
93 91
94 pp::CompletionCallbackFactory<PPB_Surface3D_Proxy, 92 pp::CompletionCallbackFactory<PPB_Surface3D_Proxy,
95 ProxyNonThreadSafeRefCount> callback_factory_; 93 ProxyNonThreadSafeRefCount> callback_factory_;
96 }; 94 };
97 95
98 } // namespace proxy 96 } // namespace proxy
99 } // namespace ppapi 97 } // namespace ppapi
100 98
101 #endif // PPAPI_PPB_SURFACE_3D_PROXY_H_ 99 #endif // PPAPI_PROXY_PPB_SURFACE_3D_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_font_proxy.h ('k') | ppapi/proxy/ppb_text_input_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698