diff options
author | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-02 23:32:37 +0000 |
---|---|---|
committer | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-02 23:32:37 +0000 |
commit | 9e5fffaf9c926e87ca84747984b70f20e5b4fced (patch) | |
tree | 715d85bf4fb14dec4656b39ae40ef8eb457c1573 /ppapi/proxy/ppapi_command_buffer_proxy.h | |
parent | ffc2b7ad2bb716f232b7d48fc88e840baf2f4afe (diff) | |
download | chromium_src-9e5fffaf9c926e87ca84747984b70f20e5b4fced.zip chromium_src-9e5fffaf9c926e87ca84747984b70f20e5b4fced.tar.gz chromium_src-9e5fffaf9c926e87ca84747984b70f20e5b4fced.tar.bz2 |
PpapiCommandBufferProxy implements CommandBufferProxy.
That way once the refactoring of WebGraphicsContext3DCommandBufferImpl is complete,
the guest renderers will be able to use the same class.
BUG=120664
TEST=manually
Review URL: http://codereview.chromium.org/9904005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_command_buffer_proxy.h')
-rw-r--r-- | ppapi/proxy/ppapi_command_buffer_proxy.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.h b/ppapi/proxy/ppapi_command_buffer_proxy.h index 41b7ba9..389ca35 100644 --- a/ppapi/proxy/ppapi_command_buffer_proxy.h +++ b/ppapi/proxy/ppapi_command_buffer_proxy.h @@ -11,6 +11,7 @@ #include "gpu/command_buffer/common/command_buffer.h" #include "ppapi/proxy/ppapi_proxy_export.h" #include "ppapi/shared_impl/host_resource.h" +#include "gpu/ipc/command_buffer_proxy.h" namespace IPC { class Message; @@ -21,15 +22,30 @@ namespace proxy { class ProxyChannel; -class PPAPI_PROXY_EXPORT PpapiCommandBufferProxy : public gpu::CommandBuffer { +class PPAPI_PROXY_EXPORT PpapiCommandBufferProxy : public CommandBufferProxy { public: PpapiCommandBufferProxy(const HostResource& resource, ProxyChannel* channel); virtual ~PpapiCommandBufferProxy(); - void SetChannelErrorCallback(const base::Closure& callback); void ReportChannelError(); + // CommandBufferProxy implementation: + virtual int GetRouteID() const OVERRIDE; + virtual bool Echo(const base::Closure& callback) OVERRIDE; + virtual bool SetSurfaceVisible(bool visible) OVERRIDE; + virtual bool DiscardBackbuffer() OVERRIDE; + virtual bool EnsureBackbuffer() OVERRIDE; + virtual void SetMemoryAllocationChangedCallback( + const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& + callback) OVERRIDE; + virtual bool SetParent(CommandBufferProxy* parent_command_buffer, + uint32 parent_texture_id) OVERRIDE; + virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; + virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; + virtual void SetOnConsoleMessageCallback( + const GpuConsoleMessageCallback& callback) OVERRIDE; + // gpu::CommandBuffer implementation: virtual bool Initialize(); virtual State GetState(); |