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

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

Issue 10106015: Allow textures to be moved from one GL context group to another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // GL_EXT_occlusion_query_boolean 78 // GL_EXT_occlusion_query_boolean
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_CHROMIUM_texture_mailbox
89 #define GL_MAILBOX_SIZE_CHROMIUM 32
88 90
89 #define GL_GLEXT_PROTOTYPES 1 91 #define GL_GLEXT_PROTOTYPES 1
90 92
91 // Define this for extra GL error debugging (slower). 93 // Define this for extra GL error debugging (slower).
92 // #define GL_ERROR_DEBUGGING 94 // #define GL_ERROR_DEBUGGING
93 #ifdef GL_ERROR_DEBUGGING 95 #ifdef GL_ERROR_DEBUGGING
94 #define CHECK_GL_ERROR() do { \ 96 #define CHECK_GL_ERROR() do { \
95 GLenum gl_error = glGetError(); \ 97 GLenum gl_error = glGetError(); \
96 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ 98 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \
97 } while (0) 99 } while (0)
98 #else // GL_ERROR_DEBUGGING 100 #else // GL_ERROR_DEBUGGING
99 #define CHECK_GL_ERROR() void(0) 101 #define CHECK_GL_ERROR() void(0)
100 #endif // GL_ERROR_DEBUGGING 102 #endif // GL_ERROR_DEBUGGING
101 103
102 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 104 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698