diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-26 00:00:41 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-26 00:00:41 +0000 |
commit | d58730d46aef9715c701805f0e8afb73764cefb9 (patch) | |
tree | c6a45de7a8dbd915b757e6aa862edc007e5220b2 /ppapi | |
parent | c3cea3797870edb96feec41c570655ea033299e7 (diff) | |
download | chromium_src-d58730d46aef9715c701805f0e8afb73764cefb9.zip chromium_src-d58730d46aef9715c701805f0e8afb73764cefb9.tar.gz chromium_src-d58730d46aef9715c701805f0e8afb73764cefb9.tar.bz2 |
Implemented CommandBuffer::GetState Graphics3D.
I'm not sure how it worked without it.
Review URL: http://codereview.chromium.org/7493032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/proxy/ppb_graphics_3d_proxy.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.cc b/ppapi/proxy/ppb_graphics_3d_proxy.cc index d3947e4..04f2088 100644 --- a/ppapi/proxy/ppb_graphics_3d_proxy.cc +++ b/ppapi/proxy/ppb_graphics_3d_proxy.cc @@ -35,6 +35,7 @@ class CommandBuffer : public gpu::CommandBuffer { virtual bool Initialize(base::SharedMemory* buffer, int32 size); virtual gpu::Buffer GetRingBuffer(); virtual State GetState(); + virtual State GetLastState(); virtual void Flush(int32 put_offset); virtual State FlushSync(int32 put_offset, int32 last_known_get); virtual void SetGetOffset(int32 get_offset); @@ -132,6 +133,10 @@ gpu::CommandBuffer::State CommandBuffer::GetState() { return last_state_; } +gpu::CommandBuffer::State CommandBuffer::GetLastState() { + return last_state_; +} + void CommandBuffer::Flush(int32 put_offset) { if (last_state_.error != gpu::error::kNoError) return; |