| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 344 |
| 345 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont
rolSupport; } | 345 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont
rolSupport; } |
| 346 | 346 |
| 347 /** | 347 /** |
| 348 * Returns a string containing the caps info. | 348 * Returns a string containing the caps info. |
| 349 */ | 349 */ |
| 350 SkString dump() const override; | 350 SkString dump() const override; |
| 351 | 351 |
| 352 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } | 352 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } |
| 353 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } | 353 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } |
| 354 bool rgbaToBgraReadbackConversionsAreSlow() const { |
| 355 return fRGBAToBGRAReadbackConversionsAreSlow; |
| 356 } |
| 354 | 357 |
| 355 const GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fS
haderCaps.get()); } | 358 const GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fS
haderCaps.get()); } |
| 356 | 359 |
| 357 private: | 360 private: |
| 358 enum ExternalFormatUsage { | 361 enum ExternalFormatUsage { |
| 359 kTexImage_ExternalFormatUsage, | 362 kTexImage_ExternalFormatUsage, |
| 360 kOther_ExternalFormatUsage, | 363 kOther_ExternalFormatUsage, |
| 361 | 364 |
| 362 kLast_ExternalFormatUsage = kOther_ExternalFormatUsage | 365 kLast_ExternalFormatUsage = kOther_ExternalFormatUsage |
| 363 }; | 366 }; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 bool fIsCoreProfile : 1; | 417 bool fIsCoreProfile : 1; |
| 415 bool fBindFragDataLocationSupport : 1; | 418 bool fBindFragDataLocationSupport : 1; |
| 416 bool fSRGBWriteControl : 1; | 419 bool fSRGBWriteControl : 1; |
| 417 bool fRGBA8888PixelsOpsAreSlow : 1; | 420 bool fRGBA8888PixelsOpsAreSlow : 1; |
| 418 bool fPartialFBOReadIsSlow : 1; | 421 bool fPartialFBOReadIsSlow : 1; |
| 419 bool fBindUniformLocationSupport : 1; | 422 bool fBindUniformLocationSupport : 1; |
| 420 bool fExternalTextureSupport : 1; | 423 bool fExternalTextureSupport : 1; |
| 421 bool fRectangleTextureSupport : 1; | 424 bool fRectangleTextureSupport : 1; |
| 422 bool fTextureSwizzleSupport : 1; | 425 bool fTextureSwizzleSupport : 1; |
| 423 bool fMipMapLevelAndLodControlSupport : 1; | 426 bool fMipMapLevelAndLodControlSupport : 1; |
| 427 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; |
| 424 | 428 |
| 425 BlitFramebufferSupport fBlitFramebufferSupport; | 429 BlitFramebufferSupport fBlitFramebufferSupport; |
| 426 | 430 |
| 427 /** Number type of the components (with out considering number of bits.) */ | 431 /** Number type of the components (with out considering number of bits.) */ |
| 428 enum FormatType { | 432 enum FormatType { |
| 429 kNormalizedFixedPoint_FormatType, | 433 kNormalizedFixedPoint_FormatType, |
| 430 kFloat_FormatType, | 434 kFloat_FormatType, |
| 431 }; | 435 }; |
| 432 | 436 |
| 433 struct ReadPixelsFormat { | 437 struct ReadPixelsFormat { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 496 |
| 493 GrSwizzle fSwizzle; | 497 GrSwizzle fSwizzle; |
| 494 }; | 498 }; |
| 495 | 499 |
| 496 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 500 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
| 497 | 501 |
| 498 typedef GrCaps INHERITED; | 502 typedef GrCaps INHERITED; |
| 499 }; | 503 }; |
| 500 | 504 |
| 501 #endif | 505 #endif |
| OLD | NEW |