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

Unified Diff: gpu/command_buffer/client/gles2_implementation.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
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 3a18ee5b6788248f18d364f5df7f7079a73ad172..fc051b1fad3bfa6b1a9d2c61c2999cde84f192ee 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -147,8 +147,9 @@ GLES2Implementation::GLES2Implementation(
share_group_ =
(share_group ? share_group
- : new ShareGroup(bind_generates_resource,
- gpu_control_->GetCommandBufferID()));
+ : new ShareGroup(
+ bind_generates_resource,
+ gpu_control_->GetCommandBufferID().GetUnsafeValue()));
DCHECK(share_group_->bind_generates_resource() == bind_generates_resource);
memset(&reserved_ids_, 0, sizeof(reserved_ids_));
@@ -5650,7 +5651,8 @@ void GLES2Implementation::WaitSyncTokenCHROMIUM(const GLbyte* sync_token) {
helper_->WaitSyncTokenCHROMIUM(
static_cast<GLint>(sync_token_data.namespace_id()),
- sync_token_data.command_buffer_id(), sync_token_data.release_count());
+ sync_token_data.command_buffer_id().GetUnsafeValue(),
+ sync_token_data.release_count());
}
}
}
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698