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

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: Moved base/id_type... into gpu/command_buffer/common/id_type.… 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 a53b9b0e9e8cd88f05d59e620532b78a0ce5c1e4..266698ac1a0b29c634137c7502e8bc31e50235ec 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_));
@@ -5656,7 +5657,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());
}
}
}

Powered by Google App Engine
This is Rietveld 408576698