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

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

Issue 10440019: Add support for GL_CHROMIUM_pixel_transfer_buffer_object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary change. Created 8 years, 1 month 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // GL_OES_depth32 101 // GL_OES_depth32
102 #define GL_DEPTH_COMPONENT32_OES 0x81A7 102 #define GL_DEPTH_COMPONENT32_OES 0x81A7
103 103
104 // GL_OES_packed_depth_stencil 104 // GL_OES_packed_depth_stencil
105 #define GL_DEPTH24_STENCIL8_OES 0x88F0 105 #define GL_DEPTH24_STENCIL8_OES 0x88F0
106 106
107 // GL_OES_compressed_ETC1_RGB8_texture 107 // GL_OES_compressed_ETC1_RGB8_texture
108 #define GL_ETC1_RGB8_OES 0x8D64 108 #define GL_ETC1_RGB8_OES 0x8D64
109 109
110 // GL_CHROMIUM_pixel_transfer_buffer_object
111 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x88EC
112 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x88EF
113
110 #define GL_GLEXT_PROTOTYPES 1 114 #define GL_GLEXT_PROTOTYPES 1
111 115
112 // GL_ARB_get_program_binary 116 // GL_ARB_get_program_binary
113 #define PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 117 #define PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
114 // GL_OES_get_program_binary 118 // GL_OES_get_program_binary
115 #define GL_PROGRAM_BINARY_LENGTH_OES 0x8741 119 #define GL_PROGRAM_BINARY_LENGTH_OES 0x8741
116 #define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE 120 #define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE
117 #define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF 121 #define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF
118 122
119 // Define this for extra GL error debugging (slower). 123 // Define this for extra GL error debugging (slower).
120 // #define GL_ERROR_DEBUGGING 124 // #define GL_ERROR_DEBUGGING
121 #ifdef GL_ERROR_DEBUGGING 125 #ifdef GL_ERROR_DEBUGGING
122 #define CHECK_GL_ERROR() do { \ 126 #define CHECK_GL_ERROR() do { \
123 GLenum gl_error = glGetError(); \ 127 GLenum gl_error = glGetError(); \
124 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ 128 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \
125 } while (0) 129 } while (0)
126 #else // GL_ERROR_DEBUGGING 130 #else // GL_ERROR_DEBUGGING
127 #define CHECK_GL_ERROR() void(0) 131 #define CHECK_GL_ERROR() void(0)
128 #endif // GL_ERROR_DEBUGGING 132 #endif // GL_ERROR_DEBUGGING
129 133
130 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 134 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698