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

Unified Diff: ppapi/proxy/ppb_graphics_3d_proxy.h

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 4484f9682cd9b926b9694de73a29c24163cdbd5d..023de8f3b386c5ecf99789e2d4d274df37c9f9eb 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.h
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.h
@@ -18,22 +18,20 @@
#include "ppapi/shared_impl/resource.h"
namespace ppapi {
+
class HostResource;
-}
-namespace pp {
namespace proxy {
-class Graphics3D : public ppapi::Resource,
- public ppapi::Graphics3DImpl {
+class Graphics3D : public Resource, public Graphics3DImpl {
public:
- explicit Graphics3D(const ppapi::HostResource& resource);
+ explicit Graphics3D(const HostResource& resource);
virtual ~Graphics3D();
bool Init();
// Resource overrides.
- virtual ::ppapi::thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE {
+ virtual thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE {
return this;
}
@@ -53,7 +51,7 @@ class Graphics3D : public ppapi::Resource,
int32_t last_known_get) OVERRIDE;
protected:
- // ppapi::Graphics3DImpl overrides.
+ // Graphics3DImpl overrides.
virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE;
virtual int32 DoSwapBuffers() OVERRIDE;
@@ -86,43 +84,43 @@ class PPB_Graphics3D_Proxy : public InterfaceProxy {
void OnMsgCreate(PP_Instance instance,
PP_Config3D_Dev config,
const std::vector<int32_t>& attribs,
- ppapi::HostResource* result);
- void OnMsgInitCommandBuffer(const ppapi::HostResource& context,
+ HostResource* result);
+ void OnMsgInitCommandBuffer(const HostResource& context,
int32 size,
base::SharedMemoryHandle* ring_buffer);
- void OnMsgGetState(const ppapi::HostResource& context,
+ void OnMsgGetState(const HostResource& context,
gpu::CommandBuffer::State* state);
- void OnMsgFlush(const ppapi::HostResource& context,
+ void OnMsgFlush(const HostResource& context,
int32 put_offset,
int32 last_known_get,
gpu::CommandBuffer::State* state);
- void OnMsgAsyncFlush(const ppapi::HostResource& context,
+ void OnMsgAsyncFlush(const HostResource& context,
int32 put_offset);
- void OnMsgCreateTransferBuffer(const ppapi::HostResource& context,
+ void OnMsgCreateTransferBuffer(const HostResource& context,
int32 size,
int32* id);
- void OnMsgDestroyTransferBuffer(const ppapi::HostResource& context,
+ void OnMsgDestroyTransferBuffer(const HostResource& context,
int32 id);
- void OnMsgGetTransferBuffer(const ppapi::HostResource& context,
+ void OnMsgGetTransferBuffer(const HostResource& context,
int32 id,
base::SharedMemoryHandle* transfer_buffer,
uint32* size);
- void OnMsgSwapBuffers(const ppapi::HostResource& context);
+ void OnMsgSwapBuffers(const HostResource& context);
// Renderer->plugin message handlers.
- void OnMsgSwapBuffersACK(const ppapi::HostResource& context,
+ void OnMsgSwapBuffersACK(const HostResource& context,
int32_t pp_error);
void SendSwapBuffersACKToPlugin(int32_t result,
- const ppapi::HostResource& context);
+ const HostResource& context);
- CompletionCallbackFactory<PPB_Graphics3D_Proxy,
- ProxyNonThreadSafeRefCount> callback_factory_;
+ pp::CompletionCallbackFactory<PPB_Graphics3D_Proxy,
+ ProxyNonThreadSafeRefCount> callback_factory_;
DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
};
} // namespace proxy
-} // namespace pp
+} // namespace ppapi
#endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698