summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/cmd_buffer_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/client/cmd_buffer_helper.h')
-rw-r--r--gpu/command_buffer/client/cmd_buffer_helper.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
index 49ff97e..d174831e 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.h
+++ b/gpu/command_buffer/client/cmd_buffer_helper.h
@@ -109,6 +109,10 @@ class CommandBufferHelper {
return *reinterpret_cast<T*>(data);
}
+ int32 last_token_read() const {
+ return last_token_read_;
+ }
+
error::Error GetError();
// Common Commands
@@ -196,6 +200,10 @@ class CommandBufferHelper {
shared_memory_offset);
}
+ CommandBuffer* command_buffer() const {
+ return command_buffer_;
+ }
+
private:
// Waits until get changes, updating the value of get_.
void WaitForGetChange();