OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |