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

Side by Side Diff: ui/gl/gl_bindings.h

Issue 242163002: Adding support for PVRTC, ATC, and ETC1 textures to the command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 #ifndef UI_GL_GL_BINDINGS_H_ 5 #ifndef UI_GL_GL_BINDINGS_H_
6 #define UI_GL_GL_BINDINGS_H_ 6 #define UI_GL_GL_BINDINGS_H_
7 7
8 // Includes the platform independent and platform dependent GL headers. 8 // Includes the platform independent and platform dependent GL headers.
9 // Only include this in cc files. It pulls in system headers, including 9 // Only include this in cc files. It pulls in system headers, including
10 // the X11 headers on linux, which define all kinds of macros that are 10 // the X11 headers on linux, which define all kinds of macros that are
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 #define GL_DEPTH24_STENCIL8_OES 0x88F0 145 #define GL_DEPTH24_STENCIL8_OES 0x88F0
146 #endif 146 #endif
147 147
148 #ifndef GL_DEPTH24_STENCIL8 148 #ifndef GL_DEPTH24_STENCIL8
149 #define GL_DEPTH24_STENCIL8 0x88F0 149 #define GL_DEPTH24_STENCIL8 0x88F0
150 #endif 150 #endif
151 151
152 // GL_OES_compressed_ETC1_RGB8_texture 152 // GL_OES_compressed_ETC1_RGB8_texture
153 #define GL_ETC1_RGB8_OES 0x8D64 153 #define GL_ETC1_RGB8_OES 0x8D64
154 154
155 // GL_AMD_compressed_ATC_texture
156 #define GL_ATC_RGB_AMD 0x8C92
157 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
158 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
159
160 // GL_IMG_texture_compression_pvrtc
161 #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
162 #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
163 #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
164 #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
165
155 // GL_OES_vertex_array_object 166 // GL_OES_vertex_array_object
156 #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5 167 #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5
157 168
158 // GL_CHROMIUM_pixel_transfer_buffer_object 169 // GL_CHROMIUM_pixel_transfer_buffer_object
159 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x78EC 170 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x78EC
160 #define GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM 0x78ED 171 #define GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM 0x78ED
161 #define GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EE 172 #define GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EE
162 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EF 173 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EF
163 174
164 /* GL_EXT_discard_framebuffer */ 175 /* GL_EXT_discard_framebuffer */
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 #elif defined(OS_ANDROID) 339 #elif defined(OS_ANDROID)
329 340
330 GL_EXPORT extern EGLApi* g_current_egl_context; 341 GL_EXPORT extern EGLApi* g_current_egl_context;
331 GL_EXPORT extern DriverEGL g_driver_egl; 342 GL_EXPORT extern DriverEGL g_driver_egl;
332 343
333 #endif 344 #endif
334 345
335 } // namespace gfx 346 } // namespace gfx
336 347
337 #endif // UI_GL_GL_BINDINGS_H_ 348 #endif // UI_GL_GL_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698