| 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 #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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 enum ContextType { | 303 enum ContextType { |
| 304 CONTEXT_TYPE_WEBGL1, | 304 CONTEXT_TYPE_WEBGL1, |
| 305 CONTEXT_TYPE_WEBGL2, | 305 CONTEXT_TYPE_WEBGL2, |
| 306 CONTEXT_TYPE_OPENGLES2, | 306 CONTEXT_TYPE_OPENGLES2, |
| 307 CONTEXT_TYPE_OPENGLES3, | 307 CONTEXT_TYPE_OPENGLES3, |
| 308 CONTEXT_TYPE_LAST = CONTEXT_TYPE_OPENGLES3 | 308 CONTEXT_TYPE_LAST = CONTEXT_TYPE_OPENGLES3 |
| 309 }; | 309 }; |
| 310 GLES2_UTILS_EXPORT bool IsWebGLContextType(ContextType context_type); | 310 GLES2_UTILS_EXPORT bool IsWebGLContextType(ContextType context_type); |
| 311 GLES2_UTILS_EXPORT bool IsWebGL1OrES2ContextType(ContextType context_type); |
| 312 GLES2_UTILS_EXPORT bool IsWebGL2OrES3ContextType(ContextType context_type); |
| 311 | 313 |
| 312 struct GLES2_UTILS_EXPORT ContextCreationAttribHelper { | 314 struct GLES2_UTILS_EXPORT ContextCreationAttribHelper { |
| 313 ContextCreationAttribHelper(); | 315 ContextCreationAttribHelper(); |
| 314 ContextCreationAttribHelper(const ContextCreationAttribHelper& other); | 316 ContextCreationAttribHelper(const ContextCreationAttribHelper& other); |
| 315 | 317 |
| 316 bool Parse(const std::vector<int32_t>& attribs); | 318 bool Parse(const std::vector<int32_t>& attribs); |
| 317 | 319 |
| 318 gfx::Size offscreen_framebuffer_size; | 320 gfx::Size offscreen_framebuffer_size; |
| 319 gl::GpuPreference gpu_preference; | 321 gl::GpuPreference gpu_preference; |
| 320 // -1 if invalid or unspecified. | 322 // -1 if invalid or unspecified. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 333 bool should_use_native_gmb_for_backbuffer; | 335 bool should_use_native_gmb_for_backbuffer; |
| 334 | 336 |
| 335 ContextType context_type; | 337 ContextType context_type; |
| 336 }; | 338 }; |
| 337 | 339 |
| 338 } // namespace gles2 | 340 } // namespace gles2 |
| 339 } // namespace gpu | 341 } // namespace gpu |
| 340 | 342 |
| 341 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ | 343 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ |
| 342 | 344 |
| OLD | NEW |