| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } | 326 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } |
| 327 | 327 |
| 328 /// Are textures with GL_TEXTURE_RECTANGLE type supported. | 328 /// Are textures with GL_TEXTURE_RECTANGLE type supported. |
| 329 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } | 329 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } |
| 330 | 330 |
| 331 /// GL_ARB_texture_swizzle | 331 /// GL_ARB_texture_swizzle |
| 332 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } | 332 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } |
| 333 | 333 |
| 334 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont
rolSupport; } | 334 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont
rolSupport; } |
| 335 | 335 |
| 336 bool doManualMipmapping() const { return fDoManualMipmapping; } |
| 337 |
| 336 /** | 338 /** |
| 337 * Returns a string containing the caps info. | 339 * Returns a string containing the caps info. |
| 338 */ | 340 */ |
| 339 SkString dump() const override; | 341 SkString dump() const override; |
| 340 | 342 |
| 341 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } | 343 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } |
| 342 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } | 344 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } |
| 343 bool rgbaToBgraReadbackConversionsAreSlow() const { | 345 bool rgbaToBgraReadbackConversionsAreSlow() const { |
| 344 return fRGBAToBGRAReadbackConversionsAreSlow; | 346 return fRGBAToBGRAReadbackConversionsAreSlow; |
| 345 } | 347 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 405 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 404 bool fIsCoreProfile : 1; | 406 bool fIsCoreProfile : 1; |
| 405 bool fBindFragDataLocationSupport : 1; | 407 bool fBindFragDataLocationSupport : 1; |
| 406 bool fRGBA8888PixelsOpsAreSlow : 1; | 408 bool fRGBA8888PixelsOpsAreSlow : 1; |
| 407 bool fPartialFBOReadIsSlow : 1; | 409 bool fPartialFBOReadIsSlow : 1; |
| 408 bool fBindUniformLocationSupport : 1; | 410 bool fBindUniformLocationSupport : 1; |
| 409 bool fRectangleTextureSupport : 1; | 411 bool fRectangleTextureSupport : 1; |
| 410 bool fTextureSwizzleSupport : 1; | 412 bool fTextureSwizzleSupport : 1; |
| 411 bool fMipMapLevelAndLodControlSupport : 1; | 413 bool fMipMapLevelAndLodControlSupport : 1; |
| 412 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; | 414 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; |
| 415 bool fDoManualMipmapping : 1; |
| 413 | 416 |
| 414 BlitFramebufferSupport fBlitFramebufferSupport; | 417 BlitFramebufferSupport fBlitFramebufferSupport; |
| 415 | 418 |
| 416 /** Number type of the components (with out considering number of bits.) */ | 419 /** Number type of the components (with out considering number of bits.) */ |
| 417 enum FormatType { | 420 enum FormatType { |
| 418 kNormalizedFixedPoint_FormatType, | 421 kNormalizedFixedPoint_FormatType, |
| 419 kFloat_FormatType, | 422 kFloat_FormatType, |
| 420 }; | 423 }; |
| 421 | 424 |
| 422 struct ReadPixelsFormat { | 425 struct ReadPixelsFormat { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 | 485 |
| 483 GrSwizzle fSwizzle; | 486 GrSwizzle fSwizzle; |
| 484 }; | 487 }; |
| 485 | 488 |
| 486 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 489 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
| 487 | 490 |
| 488 typedef GrCaps INHERITED; | 491 typedef GrCaps INHERITED; |
| 489 }; | 492 }; |
| 490 | 493 |
| 491 #endif | 494 #endif |
| OLD | NEW |