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

Unified Diff: gpu/command_buffer/service/command_buffer_service.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: Added gpu namespace for gles2_conform_support/egl/display.cc 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
Index: gpu/command_buffer/service/command_buffer_service.h
diff --git a/gpu/command_buffer/service/command_buffer_service.h b/gpu/command_buffer/service/command_buffer_service.h
index ddcfec3d36d64d6beb3625f9ee1c7038b3d68410..105c794b36cb6ab9fee7bc9e2b857932bf2714f2 100644
--- a/gpu/command_buffer/service/command_buffer_service.h
+++ b/gpu/command_buffer/service/command_buffer_service.h
@@ -15,6 +15,10 @@ class TransferBufferManagerInterface;
class GPU_EXPORT CommandBufferServiceBase : public CommandBuffer {
public:
+ CommandBufferServiceBase(CommandBufferNamespace namespace_id,
+ uint64_t command_buffer_id)
+ : CommandBuffer(namespace_id, command_buffer_id) {}
+
// Sets the current get offset. This can be called from any thread.
virtual void SetGetOffset(int32 get_offset) = 0;
@@ -43,7 +47,8 @@ class GPU_EXPORT CommandBufferService : public CommandBufferServiceBase {
public:
typedef base::Callback<bool(int32)> GetBufferChangedCallback;
explicit CommandBufferService(
- TransferBufferManagerInterface* transfer_buffer_manager);
+ TransferBufferManagerInterface* transfer_buffer_manager,
+ CommandBufferNamespace namespace_id, uint64_t command_buffer_id);
~CommandBufferService() override;
// CommandBuffer implementation:

Powered by Google App Engine
This is Rietveld 408576698