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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 DISALLOW_COPY_AND_ASSIGN(GLSLArrayName); | 295 DISALLOW_COPY_AND_ASSIGN(GLSLArrayName); |
296 }; | 296 }; |
297 | 297 |
298 enum ContextType { | 298 enum ContextType { |
299 CONTEXT_TYPE_WEBGL1, | 299 CONTEXT_TYPE_WEBGL1, |
300 CONTEXT_TYPE_WEBGL2, | 300 CONTEXT_TYPE_WEBGL2, |
301 CONTEXT_TYPE_OPENGLES2, | 301 CONTEXT_TYPE_OPENGLES2, |
302 CONTEXT_TYPE_OPENGLES3, | 302 CONTEXT_TYPE_OPENGLES3, |
303 CONTEXT_TYPE_LAST = CONTEXT_TYPE_OPENGLES3 | 303 CONTEXT_TYPE_LAST = CONTEXT_TYPE_OPENGLES3 |
304 }; | 304 }; |
305 GLES2_UTILS_EXPORT bool IsWebGLContextType(ContextType context_type); | |
306 | 305 |
307 struct GLES2_UTILS_EXPORT ContextCreationAttribHelper { | 306 struct GLES2_UTILS_EXPORT ContextCreationAttribHelper { |
308 ContextCreationAttribHelper(); | 307 ContextCreationAttribHelper(); |
309 ContextCreationAttribHelper(const ContextCreationAttribHelper& other); | 308 ContextCreationAttribHelper(const ContextCreationAttribHelper& other); |
310 | 309 |
311 bool Parse(const std::vector<int32_t>& attribs); | 310 bool Parse(const std::vector<int32_t>& attribs); |
312 | 311 |
313 gfx::Size offscreen_framebuffer_size; | 312 gfx::Size offscreen_framebuffer_size; |
314 gl::GpuPreference gpu_preference; | 313 gl::GpuPreference gpu_preference; |
315 // -1 if invalid or unspecified. | 314 // -1 if invalid or unspecified. |
(...skipping 12 matching lines...) Expand all Loading... |
328 bool should_use_native_gmb_for_backbuffer; | 327 bool should_use_native_gmb_for_backbuffer; |
329 | 328 |
330 ContextType context_type; | 329 ContextType context_type; |
331 }; | 330 }; |
332 | 331 |
333 } // namespace gles2 | 332 } // namespace gles2 |
334 } // namespace gpu | 333 } // namespace gpu |
335 | 334 |
336 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ | 335 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ |
337 | 336 |
OLD | NEW |