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

Unified Diff: ppapi/proxy/ppb_graphics_3d_proxy.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppb_graphics_2d_proxy.cc ('k') | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_graphics_3d_proxy.h
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.h b/ppapi/proxy/ppb_graphics_3d_proxy.h
index 6ff3a10e632b751fc05ae1c04e379b4eda92ee6c..173dc3c50a4dd035c39787949e741b7f9706aceb 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.h
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.h
@@ -17,15 +17,17 @@
#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
#include "ppapi/shared_impl/graphics_3d_impl.h"
+namespace ppapi {
+class HostResource;
+}
+
namespace pp {
namespace proxy {
-class HostResource;
-
class Graphics3D : public PluginResource,
public ppapi::Graphics3DImpl {
public:
- explicit Graphics3D(const HostResource& resource);
+ explicit Graphics3D(const ppapi::HostResource& resource);
virtual ~Graphics3D();
bool Init();
@@ -84,33 +86,34 @@ class PPB_Graphics3D_Proxy : public InterfaceProxy {
void OnMsgCreate(PP_Instance instance,
PP_Config3D_Dev config,
const std::vector<int32_t>& attribs,
- HostResource* result);
- void OnMsgInitCommandBuffer(const HostResource& context,
+ ppapi::HostResource* result);
+ void OnMsgInitCommandBuffer(const ppapi::HostResource& context,
int32 size,
base::SharedMemoryHandle* ring_buffer);
- void OnMsgGetState(const HostResource& context,
+ void OnMsgGetState(const ppapi::HostResource& context,
gpu::CommandBuffer::State* state);
- void OnMsgFlush(const HostResource& context,
+ void OnMsgFlush(const ppapi::HostResource& context,
int32 put_offset,
int32 last_known_get,
gpu::CommandBuffer::State* state);
- void OnMsgAsyncFlush(const HostResource& context,
+ void OnMsgAsyncFlush(const ppapi::HostResource& context,
int32 put_offset);
- void OnMsgCreateTransferBuffer(const HostResource& context,
+ void OnMsgCreateTransferBuffer(const ppapi::HostResource& context,
int32 size,
int32* id);
- void OnMsgDestroyTransferBuffer(const HostResource& context,
+ void OnMsgDestroyTransferBuffer(const ppapi::HostResource& context,
int32 id);
- void OnMsgGetTransferBuffer(const HostResource& context,
+ void OnMsgGetTransferBuffer(const ppapi::HostResource& context,
int32 id,
base::SharedMemoryHandle* transfer_buffer,
uint32* size);
- void OnMsgSwapBuffers(const HostResource& context);
+ void OnMsgSwapBuffers(const ppapi::HostResource& context);
// Renderer->plugin message handlers.
- void OnMsgSwapBuffersACK(const HostResource& context, int32_t pp_error);
+ void OnMsgSwapBuffersACK(const ppapi::HostResource& context,
+ int32_t pp_error);
void SendSwapBuffersACKToPlugin(int32_t result,
- const HostResource& context);
+ const ppapi::HostResource& context);
CompletionCallbackFactory<PPB_Graphics3D_Proxy,
ProxyNonThreadSafeRefCount> callback_factory_;
« no previous file with comments | « ppapi/proxy/ppb_graphics_2d_proxy.cc ('k') | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698