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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } | 339 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } |
340 | 340 |
341 /// GL_ARB_texture_swizzle | 341 /// GL_ARB_texture_swizzle |
342 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } | 342 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } |
343 | 343 |
344 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont
rolSupport; } | 344 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont
rolSupport; } |
345 | 345 |
346 bool doManualMipmapping() const { return fDoManualMipmapping; } | 346 bool doManualMipmapping() const { return fDoManualMipmapping; } |
347 | 347 |
348 bool srgbDecodeDisableSupport() const { return fSRGBDecodeDisableSupport; } | 348 bool srgbDecodeDisableSupport() const { return fSRGBDecodeDisableSupport; } |
| 349 bool srgbDecodeDisableAffectsMipmaps() const { return fSRGBDecodeDisableAffe
ctsMipmaps; } |
349 | 350 |
350 /** | 351 /** |
351 * Returns a string containing the caps info. | 352 * Returns a string containing the caps info. |
352 */ | 353 */ |
353 SkString dump() const override; | 354 SkString dump() const override; |
354 | 355 |
355 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } | 356 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } |
356 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } | 357 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } |
357 bool rgbaToBgraReadbackConversionsAreSlow() const { | 358 bool rgbaToBgraReadbackConversionsAreSlow() const { |
358 return fRGBAToBGRAReadbackConversionsAreSlow; | 359 return fRGBAToBGRAReadbackConversionsAreSlow; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 bool fBindFragDataLocationSupport : 1; | 418 bool fBindFragDataLocationSupport : 1; |
418 bool fRGBA8888PixelsOpsAreSlow : 1; | 419 bool fRGBA8888PixelsOpsAreSlow : 1; |
419 bool fPartialFBOReadIsSlow : 1; | 420 bool fPartialFBOReadIsSlow : 1; |
420 bool fBindUniformLocationSupport : 1; | 421 bool fBindUniformLocationSupport : 1; |
421 bool fRectangleTextureSupport : 1; | 422 bool fRectangleTextureSupport : 1; |
422 bool fTextureSwizzleSupport : 1; | 423 bool fTextureSwizzleSupport : 1; |
423 bool fMipMapLevelAndLodControlSupport : 1; | 424 bool fMipMapLevelAndLodControlSupport : 1; |
424 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; | 425 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; |
425 bool fDoManualMipmapping : 1; | 426 bool fDoManualMipmapping : 1; |
426 bool fSRGBDecodeDisableSupport : 1; | 427 bool fSRGBDecodeDisableSupport : 1; |
| 428 bool fSRGBDecodeDisableAffectsMipmaps : 1; |
427 | 429 |
428 uint32_t fBlitFramebufferFlags; | 430 uint32_t fBlitFramebufferFlags; |
429 | 431 |
430 /** Number type of the components (with out considering number of bits.) */ | 432 /** Number type of the components (with out considering number of bits.) */ |
431 enum FormatType { | 433 enum FormatType { |
432 kNormalizedFixedPoint_FormatType, | 434 kNormalizedFixedPoint_FormatType, |
433 kFloat_FormatType, | 435 kFloat_FormatType, |
434 kInteger_FormatType, | 436 kInteger_FormatType, |
435 }; | 437 }; |
436 | 438 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 | 502 |
501 GrSwizzle fSwizzle; | 503 GrSwizzle fSwizzle; |
502 }; | 504 }; |
503 | 505 |
504 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 506 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
505 | 507 |
506 typedef GrCaps INHERITED; | 508 typedef GrCaps INHERITED; |
507 }; | 509 }; |
508 | 510 |
509 #endif | 511 #endif |
OLD | NEW |