OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "gpu/command_buffer/common/sync_token.h" | 5 #include "gpu/command_buffer/common/sync_token.h" |
6 | 6 |
7 namespace gpu { | 7 namespace gpu { |
8 | 8 |
9 SyncToken::SyncToken() | 9 SyncToken::SyncToken() |
10 : verified_flush_(false), | 10 : verified_flush_(false), |
11 namespace_id_(CommandBufferNamespace::INVALID), | 11 namespace_id_(CommandBufferNamespace::INVALID), |
12 extra_data_field_(0), | 12 extra_data_field_(0), |
13 release_count_(0) {} | 13 release_count_(0) {} |
14 | 14 |
15 SyncToken::SyncToken(CommandBufferNamespace namespace_id, | 15 SyncToken::SyncToken(CommandBufferNamespace namespace_id, |
16 int32_t extra_data_field, | 16 int32_t extra_data_field, |
17 CommandBufferId command_buffer_id, | 17 CommandBufferId command_buffer_id, |
18 uint64_t release_count) | 18 uint64_t release_count) |
19 : verified_flush_(false), | 19 : verified_flush_(false), |
20 namespace_id_(namespace_id), | 20 namespace_id_(namespace_id), |
21 extra_data_field_(extra_data_field), | 21 extra_data_field_(extra_data_field), |
22 command_buffer_id_(command_buffer_id), | 22 command_buffer_id_(command_buffer_id), |
23 release_count_(release_count) {} | 23 release_count_(release_count) {} |
24 | 24 |
| 25 SyncToken::SyncToken(const SyncToken& other) = default; |
| 26 |
25 } // namespace gpu | 27 } // namespace gpu |
OLD | NEW |