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

Unified Diff: components/mus/gles2/command_buffer_driver.h

Issue 1548443002: Introducing gpu::CommandBufferId as a distinct, IdType<...>-based type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-save-package-id-self-contained
Patch Set: Rebasing... Created 4 years, 10 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 | « cc/trees/layer_tree_host_perftest.cc ('k') | components/mus/gles2/command_buffer_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_driver.h
diff --git a/components/mus/gles2/command_buffer_driver.h b/components/mus/gles2/command_buffer_driver.h
index 08ee3c18de4502ca696c8f676bedebaa3c5f6fed..993d5456893a9229e806c6d2c28979dfcaedd9bc 100644
--- a/components/mus/gles2/command_buffer_driver.h
+++ b/components/mus/gles2/command_buffer_driver.h
@@ -16,6 +16,7 @@
#include "base/time/time.h"
#include "gpu/command_buffer/common/capabilities.h"
#include "gpu/command_buffer/common/command_buffer.h"
+#include "gpu/command_buffer/common/command_buffer_id.h"
#include "gpu/command_buffer/common/constants.h"
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/cpp/system/buffer.h"
@@ -52,7 +53,7 @@ class CommandBufferDriver : base::NonThreadSafe {
virtual void UpdateVSyncParameters(int64_t timebase, int64_t interval) = 0;
};
CommandBufferDriver(gpu::CommandBufferNamespace command_buffer_namespace,
- uint64_t command_buffer_id,
+ gpu::CommandBufferId command_buffer_id,
gfx::AcceleratedWidget widget,
scoped_refptr<GpuState> gpu_state);
~CommandBufferDriver();
@@ -81,7 +82,7 @@ class CommandBufferDriver : base::NonThreadSafe {
gpu::CommandBufferNamespace GetNamespaceID() const {
return command_buffer_namespace_;
}
- uint64_t GetCommandBufferID() const { return command_buffer_id_; }
+ gpu::CommandBufferId GetCommandBufferID() const { return command_buffer_id_; }
gpu::SyncPointOrderData* sync_point_order_data() {
return sync_point_order_data_.get();
}
@@ -113,13 +114,13 @@ class CommandBufferDriver : base::NonThreadSafe {
const base::TimeDelta interval);
void OnFenceSyncRelease(uint64_t release);
bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id,
- uint64_t command_buffer_id,
+ gpu::CommandBufferId command_buffer_id,
uint64_t release);
void OnParseError();
void OnContextLost(uint32_t reason);
const gpu::CommandBufferNamespace command_buffer_namespace_;
- const uint64_t command_buffer_id_;
+ const gpu::CommandBufferId command_buffer_id_;
gfx::AcceleratedWidget widget_;
scoped_ptr<Client> client_;
scoped_ptr<gpu::CommandBufferService> command_buffer_;
« no previous file with comments | « cc/trees/layer_tree_host_perftest.cc ('k') | components/mus/gles2/command_buffer_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698