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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.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/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index ed487d019faa26d98acc5aa2d0a7f25b8cca3c69..0c83704115c61f4e8efa783d0809129bbd3bb717 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -12617,7 +12617,8 @@ error::Error GLES2DecoderImpl::HandleWaitSyncTokenCHROMIUM(
(c.namespace_id < static_cast<int32_t>(kMaxNamespaceId)))
? static_cast<gpu::CommandBufferNamespace>(c.namespace_id)
: gpu::CommandBufferNamespace::INVALID;
- const uint64_t command_buffer_id = c.command_buffer_id();
+ const CommandBufferId command_buffer_id =
+ CommandBufferId::FromUnsafeValue(c.command_buffer_id());
const uint64_t release = c.release_count();
if (wait_fence_sync_callback_.is_null())
return error::kNoError;

Powered by Google App Engine
This is Rietveld 408576698