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

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

Issue 9694025: Add support for GL_COMMANDS_ISSUED_CHROMIUM fence like query. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add cast for std::min Created 8 years, 9 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
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // GL_ANGLE_instanced_arrays 69 // GL_ANGLE_instanced_arrays
70 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE 70 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE
71 71
72 // GL_EXT_occlusion_query_boolean 72 // GL_EXT_occlusion_query_boolean
73 #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F 73 #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F
74 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A 74 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A
75 #define GL_CURRENT_QUERY_EXT 0x8865 75 #define GL_CURRENT_QUERY_EXT 0x8865
76 #define GL_QUERY_RESULT_EXT 0x8866 76 #define GL_QUERY_RESULT_EXT 0x8866
77 #define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867 77 #define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867
78 78
79 // GL_CHROMIUM_command_buffer_query
80 #define GL_COMMANDS_ISSUED_CHROMIUM 0x84F2
81
82
79 #define GL_GLEXT_PROTOTYPES 1 83 #define GL_GLEXT_PROTOTYPES 1
80 84
81 // Define this for extra GL error debugging (slower). 85 // Define this for extra GL error debugging (slower).
82 // #define GL_ERROR_DEBUGGING 86 // #define GL_ERROR_DEBUGGING
83 #ifdef GL_ERROR_DEBUGGING 87 #ifdef GL_ERROR_DEBUGGING
84 #define CHECK_GL_ERROR() do { \ 88 #define CHECK_GL_ERROR() do { \
85 GLenum gl_error = glGetError(); \ 89 GLenum gl_error = glGetError(); \
86 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ 90 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \
87 } while (0) 91 } while (0)
88 #else // GL_ERROR_DEBUGGING 92 #else // GL_ERROR_DEBUGGING
89 #define CHECK_GL_ERROR() void(0) 93 #define CHECK_GL_ERROR() void(0)
90 #endif // GL_ERROR_DEBUGGING 94 #endif // GL_ERROR_DEBUGGING
91 95
92 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 96 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.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