| 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 "gpu/command_buffer/common/gles2_cmd_utils.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 9 | 9 |
| 10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
| (...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1916 red_size(-1), | 1916 red_size(-1), |
| 1917 depth_size(-1), | 1917 depth_size(-1), |
| 1918 stencil_size(-1), | 1918 stencil_size(-1), |
| 1919 samples(-1), | 1919 samples(-1), |
| 1920 sample_buffers(-1), | 1920 sample_buffers(-1), |
| 1921 buffer_preserved(true), | 1921 buffer_preserved(true), |
| 1922 bind_generates_resource(true), | 1922 bind_generates_resource(true), |
| 1923 fail_if_major_perf_caveat(false), | 1923 fail_if_major_perf_caveat(false), |
| 1924 lose_context_when_out_of_memory(false), | 1924 lose_context_when_out_of_memory(false), |
| 1925 should_use_native_gmb_for_backbuffer(false), | 1925 should_use_native_gmb_for_backbuffer(false), |
| 1926 own_offscreen_surface(false), |
| 1926 context_type(CONTEXT_TYPE_OPENGLES2) {} | 1927 context_type(CONTEXT_TYPE_OPENGLES2) {} |
| 1927 | 1928 |
| 1928 ContextCreationAttribHelper::ContextCreationAttribHelper( | 1929 ContextCreationAttribHelper::ContextCreationAttribHelper( |
| 1929 const ContextCreationAttribHelper& other) = default; | 1930 const ContextCreationAttribHelper& other) = default; |
| 1930 | 1931 |
| 1931 bool ContextCreationAttribHelper::Parse(const std::vector<int32_t>& attribs) { | 1932 bool ContextCreationAttribHelper::Parse(const std::vector<int32_t>& attribs) { |
| 1932 for (size_t i = 0; i < attribs.size(); i += 2) { | 1933 for (size_t i = 0; i < attribs.size(); i += 2) { |
| 1933 const int32_t attrib = attribs[i]; | 1934 const int32_t attrib = attribs[i]; |
| 1934 if (i + 1 >= attribs.size()) { | 1935 if (i + 1 >= attribs.size()) { |
| 1935 if (attrib == kNone) { | 1936 if (attrib == kNone) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1994 } | 1995 } |
| 1995 } | 1996 } |
| 1996 | 1997 |
| 1997 return true; | 1998 return true; |
| 1998 } | 1999 } |
| 1999 | 2000 |
| 2000 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" | 2001 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
| 2001 | 2002 |
| 2002 } // namespace gles2 | 2003 } // namespace gles2 |
| 2003 } // namespace gpu | 2004 } // namespace gpu |
| OLD | NEW |