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

Unified Diff: gpu/command_buffer/client/gpu_control.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/client/client_test_helper.h ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gpu_control.h
diff --git a/gpu/command_buffer/client/gpu_control.h b/gpu/command_buffer/client/gpu_control.h
index 75bd082a34da478b9247d294c050e2cb8c864fcb..7065d1edb44c27e6904166091e2a4ab299d01819 100644
--- a/gpu/command_buffer/client/gpu_control.h
+++ b/gpu/command_buffer/client/gpu_control.h
@@ -12,6 +12,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "gpu/command_buffer/common/capabilities.h"
+#include "gpu/command_buffer/common/constants.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/gpu_export.h"
@@ -89,6 +90,12 @@ class GPU_EXPORT GpuControl {
// should be considered as lost.
virtual bool IsGpuChannelLost() = 0;
+ // The namespace and command buffer ID forms a unique pair for all existing
+ // GpuControl (on client) and matches for the corresponding command buffer
+ // (on server) in a single server process.
+ virtual CommandBufferNamespace GetNamespaceID() const = 0;
+ virtual uint64_t GetCommandBufferID() const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(GpuControl);
};
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698