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

Side by Side Diff: gpu/command_buffer/common/sync_token.h

Issue 1725113002: gpu: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/common/sync_token.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef GPU_COMMAND_BUFFER_COMMON_SYNC_TOKEN_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_SYNC_TOKEN_H_
6 #define GPU_COMMAND_BUFFER_COMMON_SYNC_TOKEN_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_SYNC_TOKEN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 13 matching lines...) Expand all
24 // See src/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_sync_point.txt for more 24 // See src/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_sync_point.txt for more
25 // details. 25 // details.
26 struct GPU_EXPORT SyncToken { 26 struct GPU_EXPORT SyncToken {
27 SyncToken(); 27 SyncToken();
28 28
29 SyncToken(CommandBufferNamespace namespace_id, 29 SyncToken(CommandBufferNamespace namespace_id,
30 int32_t extra_data_field, 30 int32_t extra_data_field,
31 CommandBufferId command_buffer_id, 31 CommandBufferId command_buffer_id,
32 uint64_t release_count); 32 uint64_t release_count);
33 33
34 SyncToken(const SyncToken& other);
piman 2016/02/24 01:06:56 Ouch, this one could be in the critical path - ple
35
34 void Set(CommandBufferNamespace namespace_id, 36 void Set(CommandBufferNamespace namespace_id,
35 int32_t extra_data_field, 37 int32_t extra_data_field,
36 CommandBufferId command_buffer_id, 38 CommandBufferId command_buffer_id,
37 uint64_t release_count) { 39 uint64_t release_count) {
38 namespace_id_ = namespace_id; 40 namespace_id_ = namespace_id;
39 extra_data_field_ = extra_data_field; 41 extra_data_field_ = extra_data_field;
40 command_buffer_id_ = command_buffer_id; 42 command_buffer_id_ = command_buffer_id;
41 release_count_ = release_count; 43 release_count_ = release_count;
42 } 44 }
43 45
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 CommandBufferId command_buffer_id_; 103 CommandBufferId command_buffer_id_;
102 uint64_t release_count_; 104 uint64_t release_count_;
103 }; 105 };
104 106
105 static_assert(sizeof(SyncToken) <= GL_SYNC_TOKEN_SIZE_CHROMIUM, 107 static_assert(sizeof(SyncToken) <= GL_SYNC_TOKEN_SIZE_CHROMIUM,
106 "SyncToken size must not exceed GL_SYNC_TOKEN_SIZE_CHROMIUM"); 108 "SyncToken size must not exceed GL_SYNC_TOKEN_SIZE_CHROMIUM");
107 109
108 } // namespace gpu 110 } // namespace gpu
109 111
110 #endif // GPU_COMMAND_BUFFER_COMMON_SYNC_TOKEN_H_ 112 #endif // GPU_COMMAND_BUFFER_COMMON_SYNC_TOKEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/common/sync_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698