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

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

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 | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/command_buffer_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_manager.cc
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
index 9266431591cbd9ffed5310fdfa3b8c909eb851ad..8560399738c74bb183688b6d6899b004be6027af 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -125,7 +125,8 @@ GLManager::GLManager()
context_lost_allowed_(false),
pause_commands_(false),
paused_order_num_(0),
- command_buffer_id_(g_next_command_buffer_id++),
+ command_buffer_id_(
+ CommandBufferId::FromUnsafeValue(g_next_command_buffer_id++)),
next_fence_sync_release_(1) {
SetupBaseContext();
}
@@ -345,7 +346,7 @@ void GLManager::OnFenceSyncRelease(uint64_t release) {
}
bool GLManager::OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id,
- uint64_t command_buffer_id,
+ gpu::CommandBufferId command_buffer_id,
uint64_t release) {
DCHECK(sync_point_client_);
scoped_refptr<gpu::SyncPointClientState> release_state =
@@ -505,7 +506,7 @@ gpu::CommandBufferNamespace GLManager::GetNamespaceID() const {
return gpu::CommandBufferNamespace::IN_PROCESS;
}
-uint64_t GLManager::GetCommandBufferID() const {
+CommandBufferId GLManager::GetCommandBufferID() const {
return command_buffer_id_;
}
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/command_buffer_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698