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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 /// Are textures with GL_TEXTURE_RECTANGLE type supported. | 338 /// Are textures with GL_TEXTURE_RECTANGLE type supported. |
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; } |
| 349 |
348 /** | 350 /** |
349 * Returns a string containing the caps info. | 351 * Returns a string containing the caps info. |
350 */ | 352 */ |
351 SkString dump() const override; | 353 SkString dump() const override; |
352 | 354 |
353 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } | 355 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } |
354 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } | 356 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } |
355 bool rgbaToBgraReadbackConversionsAreSlow() const { | 357 bool rgbaToBgraReadbackConversionsAreSlow() const { |
356 return fRGBAToBGRAReadbackConversionsAreSlow; | 358 return fRGBAToBGRAReadbackConversionsAreSlow; |
357 } | 359 } |
(...skipping 13 matching lines...) Expand all Loading... |
371 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa
ce*); | 373 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa
ce*); |
372 void initGLSL(const GrGLContextInfo&); | 374 void initGLSL(const GrGLContextInfo&); |
373 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*); | 375 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*); |
374 | 376 |
375 void onApplyOptionsOverrides(const GrContextOptions& options) override; | 377 void onApplyOptionsOverrides(const GrContextOptions& options) override; |
376 | 378 |
377 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); | 379 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); |
378 void initBlendEqationSupport(const GrGLContextInfo&); | 380 void initBlendEqationSupport(const GrGLContextInfo&); |
379 void initStencilFormats(const GrGLContextInfo&); | 381 void initStencilFormats(const GrGLContextInfo&); |
380 // This must be called after initFSAASupport(). | 382 // This must be called after initFSAASupport(). |
381 void initConfigTable(const GrGLContextInfo&, const GrGLInterface*, GrShaderC
aps*); | 383 void initConfigTable(const GrContextOptions&, const GrGLContextInfo&, const
GrGLInterface*, |
| 384 GrShaderCaps*); |
382 | 385 |
383 void initShaderPrecisionTable(const GrGLContextInfo&, const GrGLInterface*,
GrShaderCaps*); | 386 void initShaderPrecisionTable(const GrGLContextInfo&, const GrGLInterface*,
GrShaderCaps*); |
384 | 387 |
385 GrGLStandard fStandard; | 388 GrGLStandard fStandard; |
386 | 389 |
387 SkTArray<StencilFormat, true> fStencilFormats; | 390 SkTArray<StencilFormat, true> fStencilFormats; |
388 | 391 |
389 int fMaxFragmentUniformVectors; | 392 int fMaxFragmentUniformVectors; |
390 | 393 |
391 MSFBOType fMSFBOType; | 394 MSFBOType fMSFBOType; |
(...skipping 21 matching lines...) Expand all Loading... |
413 bool fIsCoreProfile : 1; | 416 bool fIsCoreProfile : 1; |
414 bool fBindFragDataLocationSupport : 1; | 417 bool fBindFragDataLocationSupport : 1; |
415 bool fRGBA8888PixelsOpsAreSlow : 1; | 418 bool fRGBA8888PixelsOpsAreSlow : 1; |
416 bool fPartialFBOReadIsSlow : 1; | 419 bool fPartialFBOReadIsSlow : 1; |
417 bool fBindUniformLocationSupport : 1; | 420 bool fBindUniformLocationSupport : 1; |
418 bool fRectangleTextureSupport : 1; | 421 bool fRectangleTextureSupport : 1; |
419 bool fTextureSwizzleSupport : 1; | 422 bool fTextureSwizzleSupport : 1; |
420 bool fMipMapLevelAndLodControlSupport : 1; | 423 bool fMipMapLevelAndLodControlSupport : 1; |
421 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; | 424 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; |
422 bool fDoManualMipmapping : 1; | 425 bool fDoManualMipmapping : 1; |
| 426 bool fSRGBDecodeDisableSupport : 1; |
423 | 427 |
424 uint32_t fBlitFramebufferFlags; | 428 uint32_t fBlitFramebufferFlags; |
425 | 429 |
426 /** Number type of the components (with out considering number of bits.) */ | 430 /** Number type of the components (with out considering number of bits.) */ |
427 enum FormatType { | 431 enum FormatType { |
428 kNormalizedFixedPoint_FormatType, | 432 kNormalizedFixedPoint_FormatType, |
429 kFloat_FormatType, | 433 kFloat_FormatType, |
430 kInteger_FormatType, | 434 kInteger_FormatType, |
431 }; | 435 }; |
432 | 436 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 500 |
497 GrSwizzle fSwizzle; | 501 GrSwizzle fSwizzle; |
498 }; | 502 }; |
499 | 503 |
500 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 504 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
501 | 505 |
502 typedef GrCaps INHERITED; | 506 typedef GrCaps INHERITED; |
503 }; | 507 }; |
504 | 508 |
505 #endif | 509 #endif |
OLD | NEW |