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

Side by Side Diff: src/gpu/gl/GrGLDefines.h

Issue 1035243002: Housekeeping to rename GrGL compressed texture formats to match GL specs (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 9
10 #ifndef GrGLDefines_DEFINED 10 #ifndef GrGLDefines_DEFINED
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 /* GetTextureParameter */ 204 /* GetTextureParameter */
205 /* GL_TEXTURE_MAG_FILTER */ 205 /* GL_TEXTURE_MAG_FILTER */
206 /* GL_TEXTURE_MIN_FILTER */ 206 /* GL_TEXTURE_MIN_FILTER */
207 /* GL_TEXTURE_WRAP_S */ 207 /* GL_TEXTURE_WRAP_S */
208 /* GL_TEXTURE_WRAP_T */ 208 /* GL_TEXTURE_WRAP_T */
209 209
210 #define GR_GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 210 #define GR_GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
211 #define GR_GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 211 #define GR_GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
212 212
213 /* Compressed Texture Formats */ 213 /* Compressed Texture Formats */
214 #define GR_GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 214 #define GR_GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
215 #define GR_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 215 #define GR_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
216 #define GR_GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 216 #define GR_GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
217 #define GR_GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 217 #define GR_GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
218 218
219 #define GR_GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00 219 #define GR_GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
220 #define GR_GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01 220 #define GR_GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
221 #define GR_GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02 221 #define GR_GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
222 #define GR_GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03 222 #define GR_GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
223 223
224 #define GR_GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG 0x9137 224 #define GR_GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG 0x9137
225 #define GR_GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG 0x9138 225 #define GR_GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG 0x9138
226 226
227 #define GR_GL_COMPRESSED_RGB8_ETC1 0x8D64 227 #define GR_GL_COMPRESSED_ETC1_RGB8 0x8D64
228 228
229 #define GR_GL_COMPRESSED_R11 0x9270 229 #define GR_GL_COMPRESSED_R11_EAC 0x9270
230 #define GR_GL_COMPRESSED_SIGNED_R11 0x9271 230 #define GR_GL_COMPRESSED_SIGNED_R11_EAC 0x9271
231 #define GR_GL_COMPRESSED_RG11 0x9272 231 #define GR_GL_COMPRESSED_RG11_EAC 0x9272
232 #define GR_GL_COMPRESSED_SIGNED_RG11 0x9273 232 #define GR_GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
233 233
234 #define GR_GL_COMPRESSED_RGB8_ETC2 0x9274 234 #define GR_GL_COMPRESSED_RGB8_ETC2 0x9274
235 #define GR_GL_COMPRESSED_SRGB8 0x9275 235 #define GR_GL_COMPRESSED_SRGB8 0x9275
236 #define GR_GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1 0x9276 236 #define GR_GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1 0x9276
237 #define GR_GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1 0x9277 237 #define GR_GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1 0x9277
238 #define GR_GL_COMPRESSED_RGBA8_ETC2 0x9278 238 #define GR_GL_COMPRESSED_RGBA8_ETC2 0x9278
239 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ETC2 0x9279 239 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ETC2 0x9279
240 240
241 #define GR_GL_COMPRESSED_LUMINANCE_LATC1 0x8C70 241 #define GR_GL_COMPRESSED_LUMINANCE_LATC1 0x8C70
242 #define GR_GL_COMPRESSED_SIGNED_LUMINANCE_LATC1 0x8C71 242 #define GR_GL_COMPRESSED_SIGNED_LUMINANCE_LATC1 0x8C71
243 #define GR_GL_COMPRESSED_LUMINANCE_ALPHA_LATC2 0x8C72 243 #define GR_GL_COMPRESSED_LUMINANCE_ALPHA_LATC2 0x8C72
244 #define GR_GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2 0x8C73 244 #define GR_GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2 0x8C73
245 245
246 #define GR_GL_COMPRESSED_RED_RGTC1 0x8DBB 246 #define GR_GL_COMPRESSED_RED_RGTC1 0x8DBB
247 #define GR_GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC 247 #define GR_GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
248 #define GR_GL_COMPRESSED_RED_GREEN_RGTC2 0x8DBD 248 #define GR_GL_COMPRESSED_RED_GREEN_RGTC2 0x8DBD
249 #define GR_GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2 0x8DBE 249 #define GR_GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2 0x8DBE
250 250
251 #define GR_GL_COMPRESSED_3DC_X 0x87F9 251 #define GR_GL_COMPRESSED_3DC_X 0x87F9
252 #define GR_GL_COMPRESSED_3DC_XY 0x87FA 252 #define GR_GL_COMPRESSED_3DC_XY 0x87FA
253 253
254 #define GR_GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C 254 #define GR_GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
255 #define GR_GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D 255 #define GR_GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
256 #define GR_GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E 256 #define GR_GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
257 #define GR_GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F 257 #define GR_GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
258 258
259 #define GR_GL_COMPRESSED_RGBA_ASTC_4x4 0x93B0 259 #define GR_GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
260 #define GR_GL_COMPRESSED_RGBA_ASTC_5x4 0x93B1 260 #define GR_GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
261 #define GR_GL_COMPRESSED_RGBA_ASTC_5x5 0x93B2 261 #define GR_GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
262 #define GR_GL_COMPRESSED_RGBA_ASTC_6x5 0x93B3 262 #define GR_GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
263 #define GR_GL_COMPRESSED_RGBA_ASTC_6x6 0x93B4 263 #define GR_GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
264 #define GR_GL_COMPRESSED_RGBA_ASTC_8x5 0x93B5 264 #define GR_GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
265 #define GR_GL_COMPRESSED_RGBA_ASTC_8x6 0x93B6 265 #define GR_GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
266 #define GR_GL_COMPRESSED_RGBA_ASTC_8x8 0x93B7 266 #define GR_GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
267 #define GR_GL_COMPRESSED_RGBA_ASTC_10x5 0x93B8 267 #define GR_GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
268 #define GR_GL_COMPRESSED_RGBA_ASTC_10x6 0x93B9 268 #define GR_GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
269 #define GR_GL_COMPRESSED_RGBA_ASTC_10x8 0x93BA 269 #define GR_GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
270 #define GR_GL_COMPRESSED_RGBA_ASTC_10x10 0x93BB 270 #define GR_GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
271 #define GR_GL_COMPRESSED_RGBA_ASTC_12x10 0x93BC 271 #define GR_GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
272 #define GR_GL_COMPRESSED_RGBA_ASTC_12x12 0x93BD 272 #define GR_GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
273 273
274 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4 0x93D0 274 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
275 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4 0x93D1 275 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
276 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5 0x93D2 276 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
277 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5 0x93D3 277 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
278 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6 0x93D4 278 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
279 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5 0x93D5 279 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
280 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6 0x93D6 280 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
281 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8 0x93D7 281 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
282 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5 0x93D8 282 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
283 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6 0x93D9 283 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
284 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8 0x93DA 284 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
285 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10 0x93DB 285 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
286 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10 0x93DC 286 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
287 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12 0x93DD 287 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
288 288
289 /* HintMode */ 289 /* HintMode */
290 #define GR_GL_DONT_CARE 0x1100 290 #define GR_GL_DONT_CARE 0x1100
291 #define GR_GL_FASTEST 0x1101 291 #define GR_GL_FASTEST 0x1101
292 #define GR_GL_NICEST 0x1102 292 #define GR_GL_NICEST 0x1102
293 293
294 /* HintTarget */ 294 /* HintTarget */
295 #define GR_GL_GENERATE_MIPMAP_HINT 0x8192 295 #define GR_GL_GENERATE_MIPMAP_HINT 0x8192
296 296
297 /* DataType */ 297 /* DataType */
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 // NV_path_rendering extension to EXT_direct_state_access: 850 // NV_path_rendering extension to EXT_direct_state_access:
851 // [the matrix functions] must support the PATH_PROJECTION_NV and 851 // [the matrix functions] must support the PATH_PROJECTION_NV and
852 // PATH_MODELVIEW_NV tokens for matrixMode. 852 // PATH_MODELVIEW_NV tokens for matrixMode.
853 #define GR_GL_PATH_PROJECTION 0x1701 853 #define GR_GL_PATH_PROJECTION 0x1701
854 #define GR_GL_PATH_MODELVIEW 0x1700 854 #define GR_GL_PATH_MODELVIEW 0x1700
855 855
856 /* ARM specific define for MSAA support on framebuffer fetch */ 856 /* ARM specific define for MSAA support on framebuffer fetch */
857 #define GR_GL_FETCH_PER_SAMPLE_ARM 0x8F65 857 #define GR_GL_FETCH_PER_SAMPLE_ARM 0x8F65
858 858
859 #endif 859 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698