OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #ifndef GrGLCaps_DEFINED | 9 #ifndef GrGLCaps_DEFINED |
10 #define GrGLCaps_DEFINED | 10 #define GrGLCaps_DEFINED |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 ConfigFormats() { | 421 ConfigFormats() { |
422 // Inits to known bad GL enum values. | 422 // Inits to known bad GL enum values. |
423 memset(this, 0xAB, sizeof(ConfigFormats)); | 423 memset(this, 0xAB, sizeof(ConfigFormats)); |
424 } | 424 } |
425 GrGLenum fBaseInternalFormat; | 425 GrGLenum fBaseInternalFormat; |
426 GrGLenum fSizedInternalFormat; | 426 GrGLenum fSizedInternalFormat; |
427 | 427 |
428 /** The external format and type are to be used when uploading/downloadi
ng data using this | 428 /** The external format and type are to be used when uploading/downloadi
ng data using this |
429 config where both the CPU data and GrSurface are the same config. To
get the external | 429 config where both the CPU data and GrSurface are the same config. To
get the external |
430 format and type when converting between configs while copying to/fro
m memory use | 430 format and type when converting between configs while copying to/fro
m memory use |
431 getExternalFormat(). | 431 getExternalFormat(). |
432 The kTexImage external format is usually the same as kOther except f
or kSRGBA on some | 432 The kTexImage external format is usually the same as kOther except f
or kSRGBA on some |
433 GL contexts. */ | 433 GL contexts. */ |
434 GrGLenum fExternalFormat[kExternalFormatUsageCnt]; | 434 GrGLenum fExternalFormat[kExternalFormatUsageCnt]; |
435 GrGLenum fExternalType; | 435 GrGLenum fExternalType; |
436 | 436 |
437 | 437 |
438 // Either the base or sized internal format depending on the GL and conf
ig. | 438 // Either the base or sized internal format depending on the GL and conf
ig. |
439 GrGLenum fInternalFormatTexImage; | 439 GrGLenum fInternalFormatTexImage; |
440 GrGLenum fInternalFormatRenderbuffer; | 440 GrGLenum fInternalFormatRenderbuffer; |
441 }; | 441 }; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 | 473 |
474 GrSwizzle fSwizzle; | 474 GrSwizzle fSwizzle; |
475 }; | 475 }; |
476 | 476 |
477 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 477 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
478 | 478 |
479 typedef GrCaps INHERITED; | 479 typedef GrCaps INHERITED; |
480 }; | 480 }; |
481 | 481 |
482 #endif | 482 #endif |
OLD | NEW |