summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_graphics_3d_proxy.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-13 04:18:44 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-13 04:18:44 +0000
commitbe0a84b5a8b1e4e801788fc5d4f42037a88f8c45 (patch)
tree4033971ac6f11af82464359f4f4e55015eb926f0 /ppapi/proxy/ppb_graphics_3d_proxy.h
parent5e6c226780eb1617aa9ed980c627af66685d52e4 (diff)
downloadchromium_src-be0a84b5a8b1e4e801788fc5d4f42037a88f8c45.zip
chromium_src-be0a84b5a8b1e4e801788fc5d4f42037a88f8c45.tar.gz
chromium_src-be0a84b5a8b1e4e801788fc5d4f42037a88f8c45.tar.bz2
Move host resource from the proxy to the shared_impl.
This is needed by my new unified resoruce tracker, which will use this file from the shared_impl in the new resource base object. I fixed up the namespaces for the callers. Longer term, I want to put the proxy in the ppapi namespace which will eliminate some of this mess. Review URL: http://codereview.chromium.org/7623018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96678 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_graphics_3d_proxy.h')
-rw-r--r--ppapi/proxy/ppb_graphics_3d_proxy.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.h b/ppapi/proxy/ppb_graphics_3d_proxy.h
index 6ff3a10..173dc3c 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_;