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

Unified Diff: gpu/command_buffer/common/sync_token.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/common/sync_token.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/sync_token.cc
diff --git a/gpu/command_buffer/common/sync_token.cc b/gpu/command_buffer/common/sync_token.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c938fe0cb3b555d92f0b90debb989362441be3ba
--- /dev/null
+++ b/gpu/command_buffer/common/sync_token.cc
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "gpu/command_buffer/common/sync_token.h"
+
+namespace gpu {
+
+SyncToken::SyncToken()
+ : verified_flush_(false),
+ namespace_id_(CommandBufferNamespace::INVALID),
+ extra_data_field_(0),
+ release_count_(0) {}
+
+SyncToken::SyncToken(CommandBufferNamespace namespace_id,
+ int32_t extra_data_field,
+ CommandBufferId command_buffer_id,
+ uint64_t release_count)
+ : verified_flush_(false),
+ namespace_id_(namespace_id),
+ extra_data_field_(extra_data_field),
+ command_buffer_id_(command_buffer_id),
+ release_count_(release_count) {}
+
+} // namespace gpu
« no previous file with comments | « gpu/command_buffer/common/sync_token.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698