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

Side by Side Diff: gpu/command_buffer/common/capabilities.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CAPABILITIES_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_
6 #define GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
(...skipping 27 matching lines...) Expand all
38 38
39 ShaderPrecision low_int; 39 ShaderPrecision low_int;
40 ShaderPrecision medium_int; 40 ShaderPrecision medium_int;
41 ShaderPrecision high_int; 41 ShaderPrecision high_int;
42 ShaderPrecision low_float; 42 ShaderPrecision low_float;
43 ShaderPrecision medium_float; 43 ShaderPrecision medium_float;
44 ShaderPrecision high_float; 44 ShaderPrecision high_float;
45 }; 45 };
46 46
47 Capabilities(); 47 Capabilities();
48 Capabilities(const Capabilities& other);
48 49
49 template <typename T> 50 template <typename T>
50 void VisitStagePrecisions(unsigned stage, 51 void VisitStagePrecisions(unsigned stage,
51 PerStagePrecisions* precisions, 52 PerStagePrecisions* precisions,
52 const T& visitor) { 53 const T& visitor) {
53 visitor(stage, GL_LOW_INT, &precisions->low_int); 54 visitor(stage, GL_LOW_INT, &precisions->low_int);
54 visitor(stage, GL_MEDIUM_INT, &precisions->medium_int); 55 visitor(stage, GL_MEDIUM_INT, &precisions->medium_int);
55 visitor(stage, GL_HIGH_INT, &precisions->high_int); 56 visitor(stage, GL_HIGH_INT, &precisions->high_int);
56 visitor(stage, GL_LOW_FLOAT, &precisions->low_float); 57 visitor(stage, GL_LOW_FLOAT, &precisions->low_float);
57 visitor(stage, GL_MEDIUM_FLOAT, &precisions->medium_float); 58 visitor(stage, GL_MEDIUM_FLOAT, &precisions->medium_float);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool surfaceless; 144 bool surfaceless;
144 bool flips_vertically; 145 bool flips_vertically;
145 146
146 int major_version; 147 int major_version;
147 int minor_version; 148 int minor_version;
148 }; 149 };
149 150
150 } // namespace gpu 151 } // namespace gpu
151 152
152 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ 153 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/program_info_manager.cc ('k') | gpu/command_buffer/common/capabilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698