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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

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.h ('k') | gpu/command_buffer/common/sync_token.h » ('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 #include <sstream> 8 #include <sstream>
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 depth_size(-1), 1408 depth_size(-1),
1409 stencil_size(-1), 1409 stencil_size(-1),
1410 samples(-1), 1410 samples(-1),
1411 sample_buffers(-1), 1411 sample_buffers(-1),
1412 buffer_preserved(true), 1412 buffer_preserved(true),
1413 bind_generates_resource(true), 1413 bind_generates_resource(true),
1414 fail_if_major_perf_caveat(false), 1414 fail_if_major_perf_caveat(false),
1415 lose_context_when_out_of_memory(false), 1415 lose_context_when_out_of_memory(false),
1416 context_type(CONTEXT_TYPE_OPENGLES2) {} 1416 context_type(CONTEXT_TYPE_OPENGLES2) {}
1417 1417
1418 ContextCreationAttribHelper::ContextCreationAttribHelper(
1419 const ContextCreationAttribHelper& other) = default;
1420
1418 void ContextCreationAttribHelper::Serialize( 1421 void ContextCreationAttribHelper::Serialize(
1419 std::vector<int32_t>* attribs) const { 1422 std::vector<int32_t>* attribs) const {
1420 if (alpha_size != -1) { 1423 if (alpha_size != -1) {
1421 attribs->push_back(kAlphaSize); 1424 attribs->push_back(kAlphaSize);
1422 attribs->push_back(alpha_size); 1425 attribs->push_back(alpha_size);
1423 } 1426 }
1424 if (blue_size != -1) { 1427 if (blue_size != -1) {
1425 attribs->push_back(kBlueSize); 1428 attribs->push_back(kBlueSize);
1426 attribs->push_back(blue_size); 1429 attribs->push_back(blue_size);
1427 } 1430 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 } 1529 }
1527 1530
1528 return true; 1531 return true;
1529 } 1532 }
1530 1533
1531 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 1534 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
1532 1535
1533 } // namespace gles2 1536 } // namespace gles2
1534 } // namespace gpu 1537 } // namespace gpu
1535 1538
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.h ('k') | gpu/command_buffer/common/sync_token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698