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

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

Issue 10441087: Plum through ANGLE_depth_texture (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
OLDNEW
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 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F 79 #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F
80 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A 80 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A
81 #define GL_CURRENT_QUERY_EXT 0x8865 81 #define GL_CURRENT_QUERY_EXT 0x8865
82 #define GL_QUERY_RESULT_EXT 0x8866 82 #define GL_QUERY_RESULT_EXT 0x8866
83 #define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867 83 #define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867
84 84
85 // GL_CHROMIUM_command_buffer_query 85 // GL_CHROMIUM_command_buffer_query
86 #define GL_COMMANDS_ISSUED_CHROMIUM 0x84F2 86 #define GL_COMMANDS_ISSUED_CHROMIUM 0x84F2
87 87
88 // GL_OES_texure_3D 88 // GL_OES_texure_3D
89 #define GL_SAMPLER_3D_OES 0x8B5F 89 #define GL_SAMPLER_3D_OES 0x8B5F
90
91 // GL_OES_depth24
92 #define GL_DEPTH_COMPONENT24_OES 0x81A6
93
94 // GL_OES_depth32
95 #define GL_DEPTH_COMPONENT32_OES 0x81A7
96
97 // GL_OES_packed_depth_stencil
98 #define GL_DEPTH24_STENCIL8_OES 0x88F0
90 99
91 #define GL_GLEXT_PROTOTYPES 1 100 #define GL_GLEXT_PROTOTYPES 1
92 101
93 // Define this for extra GL error debugging (slower). 102 // Define this for extra GL error debugging (slower).
94 // #define GL_ERROR_DEBUGGING 103 // #define GL_ERROR_DEBUGGING
95 #ifdef GL_ERROR_DEBUGGING 104 #ifdef GL_ERROR_DEBUGGING
96 #define CHECK_GL_ERROR() do { \ 105 #define CHECK_GL_ERROR() do { \
97 GLenum gl_error = glGetError(); \ 106 GLenum gl_error = glGetError(); \
98 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ 107 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \
99 } while (0) 108 } while (0)
100 #else // GL_ERROR_DEBUGGING 109 #else // GL_ERROR_DEBUGGING
101 #define CHECK_GL_ERROR() void(0) 110 #define CHECK_GL_ERROR() void(0)
102 #endif // GL_ERROR_DEBUGGING 111 #endif // GL_ERROR_DEBUGGING
103 112
104 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 113 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698