Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: ppapi/proxy/ppapi_command_buffer_proxy.h

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad merge Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppapi_command_buffer_proxy.h
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.h b/ppapi/proxy/ppapi_command_buffer_proxy.h
index 3bf8eceed5e2abfa79c5e314aa7bdeb55fcbe8b9..ddb383891c12ab7a9ee078de325d8e09789a884b 100644
--- a/ppapi/proxy/ppapi_command_buffer_proxy.h
+++ b/ppapi/proxy/ppapi_command_buffer_proxy.h
@@ -30,7 +30,8 @@ class PPAPI_PROXY_EXPORT PpapiCommandBufferProxy : public gpu::CommandBuffer,
PpapiCommandBufferProxy(const HostResource& resource,
PluginDispatcher* dispatcher,
const gpu::Capabilities& capabilities,
- const SerializedHandle& shared_state);
+ const SerializedHandle& shared_state,
+ uint64_t command_buffer_id);
~PpapiCommandBufferProxy() override;
// gpu::CommandBuffer implementation:
@@ -67,6 +68,8 @@ class PPAPI_PROXY_EXPORT PpapiCommandBufferProxy : public gpu::CommandBuffer,
uint32 CreateStreamTexture(uint32 texture_id) override;
void SetLock(base::Lock*) override;
bool IsGpuChannelLost() override;
+ gpu::CommandBufferNamespace GetNamespaceID() const override;
+ uint64_t GetCommandBufferID() const override;
private:
bool Send(IPC::Message* msg);
@@ -80,6 +83,8 @@ class PPAPI_PROXY_EXPORT PpapiCommandBufferProxy : public gpu::CommandBuffer,
void FlushInternal();
+ const uint64_t command_buffer_id_;
+
gpu::Capabilities capabilities_;
State last_state_;
scoped_ptr<base::SharedMemory> shared_state_shm_;
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698