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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.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/capabilities.cc ('k') | gpu/command_buffer/common/gles2_cmd_utils.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file is here so other GLES2 related files can have a common set of 5 // This file is here so other GLES2 related files can have a common set of
6 // includes where appropriate. 6 // includes where appropriate.
7 7
8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
10 10
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 enum ContextType { 263 enum ContextType {
264 CONTEXT_TYPE_WEBGL1, 264 CONTEXT_TYPE_WEBGL1,
265 CONTEXT_TYPE_WEBGL2, 265 CONTEXT_TYPE_WEBGL2,
266 CONTEXT_TYPE_OPENGLES2, 266 CONTEXT_TYPE_OPENGLES2,
267 CONTEXT_TYPE_OPENGLES3 267 CONTEXT_TYPE_OPENGLES3
268 }; 268 };
269 269
270 struct GLES2_UTILS_EXPORT ContextCreationAttribHelper { 270 struct GLES2_UTILS_EXPORT ContextCreationAttribHelper {
271 ContextCreationAttribHelper(); 271 ContextCreationAttribHelper();
272 ContextCreationAttribHelper(const ContextCreationAttribHelper& other);
272 273
273 void Serialize(std::vector<int32_t>* attribs) const; 274 void Serialize(std::vector<int32_t>* attribs) const;
274 bool Parse(const std::vector<int32_t>& attribs); 275 bool Parse(const std::vector<int32_t>& attribs);
275 276
276 // -1 if invalid or unspecified. 277 // -1 if invalid or unspecified.
277 int32_t alpha_size; 278 int32_t alpha_size;
278 int32_t blue_size; 279 int32_t blue_size;
279 int32_t green_size; 280 int32_t green_size;
280 int32_t red_size; 281 int32_t red_size;
281 int32_t depth_size; 282 int32_t depth_size;
282 int32_t stencil_size; 283 int32_t stencil_size;
283 int32_t samples; 284 int32_t samples;
284 int32_t sample_buffers; 285 int32_t sample_buffers;
285 bool buffer_preserved; 286 bool buffer_preserved;
286 bool bind_generates_resource; 287 bool bind_generates_resource;
287 bool fail_if_major_perf_caveat; 288 bool fail_if_major_perf_caveat;
288 bool lose_context_when_out_of_memory; 289 bool lose_context_when_out_of_memory;
289 ContextType context_type; 290 ContextType context_type;
290 }; 291 };
291 292
292 } // namespace gles2 293 } // namespace gles2
293 } // namespace gpu 294 } // namespace gpu
294 295
295 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 296 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
296 297
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698