| 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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1399 depth_size(-1), | 1399 depth_size(-1), |
| 1400 stencil_size(-1), | 1400 stencil_size(-1), |
| 1401 samples(-1), | 1401 samples(-1), |
| 1402 sample_buffers(-1), | 1402 sample_buffers(-1), |
| 1403 buffer_preserved(true), | 1403 buffer_preserved(true), |
| 1404 bind_generates_resource(true), | 1404 bind_generates_resource(true), |
| 1405 fail_if_major_perf_caveat(false), | 1405 fail_if_major_perf_caveat(false), |
| 1406 lose_context_when_out_of_memory(false), | 1406 lose_context_when_out_of_memory(false), |
| 1407 context_type(CONTEXT_TYPE_OPENGLES2) {} | 1407 context_type(CONTEXT_TYPE_OPENGLES2) {} |
| 1408 | 1408 |
| 1409 ContextCreationAttribHelper::ContextCreationAttribHelper( |
| 1410 const ContextCreationAttribHelper& other) = default; |
| 1411 |
| 1409 void ContextCreationAttribHelper::Serialize( | 1412 void ContextCreationAttribHelper::Serialize( |
| 1410 std::vector<int32_t>* attribs) const { | 1413 std::vector<int32_t>* attribs) const { |
| 1411 if (alpha_size != -1) { | 1414 if (alpha_size != -1) { |
| 1412 attribs->push_back(kAlphaSize); | 1415 attribs->push_back(kAlphaSize); |
| 1413 attribs->push_back(alpha_size); | 1416 attribs->push_back(alpha_size); |
| 1414 } | 1417 } |
| 1415 if (blue_size != -1) { | 1418 if (blue_size != -1) { |
| 1416 attribs->push_back(kBlueSize); | 1419 attribs->push_back(kBlueSize); |
| 1417 attribs->push_back(blue_size); | 1420 attribs->push_back(blue_size); |
| 1418 } | 1421 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 } | 1520 } |
| 1518 | 1521 |
| 1519 return true; | 1522 return true; |
| 1520 } | 1523 } |
| 1521 | 1524 |
| 1522 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" | 1525 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
| 1523 | 1526 |
| 1524 } // namespace gles2 | 1527 } // namespace gles2 |
| 1525 } // namespace gpu | 1528 } // namespace gpu |
| 1526 | 1529 |
| OLD | NEW |