Index: ppapi/proxy/ppapi_command_buffer_proxy.cc |
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.cc b/ppapi/proxy/ppapi_command_buffer_proxy.cc |
index 7a42524bff2fe2827ffbce153f9d62f1a011b108..5548072dce8037aa8e926fc356d5159fdca58c64 100644 |
--- a/ppapi/proxy/ppapi_command_buffer_proxy.cc |
+++ b/ppapi/proxy/ppapi_command_buffer_proxy.cc |
@@ -17,8 +17,12 @@ PpapiCommandBufferProxy::PpapiCommandBufferProxy( |
const ppapi::HostResource& resource, |
PluginDispatcher* dispatcher, |
const gpu::Capabilities& capabilities, |
- const SerializedHandle& shared_state) |
- : capabilities_(capabilities), |
+ const SerializedHandle& shared_state, |
+ gpu::CommandBufferNamespace namespace_id, |
+ uint64_t command_buffer_id) |
+ : namespace_id_(namespace_id), |
+ command_buffer_id_(command_buffer_id), |
+ capabilities_(capabilities), |
resource_(resource), |
dispatcher_(dispatcher) { |
shared_state_shm_.reset( |
@@ -177,6 +181,14 @@ bool PpapiCommandBufferProxy::IsGpuChannelLost() { |
return false; |
} |
+gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const { |
+ return namespace_id_; |
+} |
+ |
+uint64_t PpapiCommandBufferProxy::GetCommandBufferID() const { |
+ return command_buffer_id_; |
+} |
+ |
uint32 PpapiCommandBufferProxy::InsertSyncPoint() { |
uint32 sync_point = 0; |
if (last_state_.error == gpu::error::kNoError) { |