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

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: 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/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 ae331e5a4a080d4cf275e8cb35d2caf30011a28a..c68e1597f62d0bd3ba31afb4fcce302f552d583a 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -12670,7 +12670,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;
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.h ('k') | gpu/command_buffer/service/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698