summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_context_3d_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/ppb_context_3d_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_context_3d_proxy.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_context_3d_proxy.cc b/ppapi/proxy/ppb_context_3d_proxy.cc
index ff2fe93..4881aa9 100644
--- a/ppapi/proxy/ppb_context_3d_proxy.cc
+++ b/ppapi/proxy/ppb_context_3d_proxy.cc
@@ -87,6 +87,7 @@ class PepperCommandBuffer : 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);
@@ -186,6 +187,10 @@ gpu::CommandBuffer::State PepperCommandBuffer::GetState() {
return last_state_;
}
+gpu::CommandBuffer::State PepperCommandBuffer::GetLastState() {
+ return last_state_;
+}
+
void PepperCommandBuffer::Flush(int32 put_offset) {
if (last_state_.error != gpu::error::kNoError)
return;