Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Side by Side Diff: gpu/command_buffer/service/gl_utils.h

Issue 6268016: Fix GL_CHROMIUM_framebuffer_multisample to accept the correct enums.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 includes all the necessary GL headers and implements some useful 5 // This file includes all the necessary GL headers and implements some useful
6 // utilities. 6 // utilities.
7 7
8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
9 #define GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 9 #define GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
10 10
(...skipping 11 matching lines...) Expand all
22 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A 22 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
23 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B 23 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
24 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD 24 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
25 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB 25 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
26 #define GL_MAX_VARYING_VECTORS 0x8DFC 26 #define GL_MAX_VARYING_VECTORS 0x8DFC
27 #define GL_SHADER_BINARY_FORMATS 0x8DF8 27 #define GL_SHADER_BINARY_FORMATS 0x8DF8
28 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 28 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
29 #define GL_SHADER_COMPILER 0x8DFA 29 #define GL_SHADER_COMPILER 0x8DFA
30 #define GL_RGB565 0x8D62 30 #define GL_RGB565 0x8D62
31 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B 31 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B
32 #define GL_RGB8_OES 0x8051
33 #define GL_RGBA8_OES 0x8058
32 34
33 #define GL_GLEXT_PROTOTYPES 1 35 #define GL_GLEXT_PROTOTYPES 1
34 36
35 // Define this for extra GL error debugging (slower). 37 // Define this for extra GL error debugging (slower).
36 // #define GL_ERROR_DEBUGGING 38 // #define GL_ERROR_DEBUGGING
37 #ifdef GL_ERROR_DEBUGGING 39 #ifdef GL_ERROR_DEBUGGING
38 #define CHECK_GL_ERROR() do { \ 40 #define CHECK_GL_ERROR() do { \
39 GLenum gl_error = glGetError(); \ 41 GLenum gl_error = glGetError(); \
40 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ 42 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \
41 } while (0) 43 } while (0)
42 #else // GL_ERROR_DEBUGGING 44 #else // GL_ERROR_DEBUGGING
43 #define CHECK_GL_ERROR() void(0) 45 #define CHECK_GL_ERROR() void(0)
44 #endif // GL_ERROR_DEBUGGING 46 #endif // GL_ERROR_DEBUGGING
45 47
46 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 48 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698