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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.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 | « gpu/command_buffer/common/constants.h ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index 7c84db0e0b05603eb4bca092ad1ed4ad5f9679d7..4859760d363864166c274c357dfadb71fab28c27 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -126,6 +126,8 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
uint32 CreateStreamTexture(uint32 texture_id) override;
void SetLock(base::Lock*) override;
bool IsGpuChannelLost() override;
+ CommandBufferNamespace GetNamespaceID() const override;
+ uint64_t GetCommandBufferID() const override;
// The serializer interface to the GPU service (i.e. thread).
class Service {
@@ -228,6 +230,8 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
void PumpCommands();
void PerformDelayedWork();
+ const uint64_t command_buffer_id_;
+
// Members accessed on the gpu thread (possibly with the exception of
// creation):
bool context_lost_;
« no previous file with comments | « gpu/command_buffer/common/constants.h ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698