| 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); | 318 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); |
| 319 } | 319 } |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); | 322 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); |
| 323 void initStencilFormats(const GrGLContextInfo&); | 323 void initStencilFormats(const GrGLContextInfo&); |
| 324 // This must be called after initFSAASupport(). | 324 // This must be called after initFSAASupport(). |
| 325 void initConfigRenderableTable(const GrGLContextInfo&); | 325 void initConfigRenderableTable(const GrGLContextInfo&); |
| 326 void initConfigTexturableTable(const GrGLContextInfo&, const GrGLInterface*)
; | 326 void initConfigTexturableTable(const GrGLContextInfo&, const GrGLInterface*)
; |
| 327 | 327 |
| 328 bool doReadPixelsSupported(const GrGLInterface* intf, | 328 // Must be called after fGeometryShaderSupport is initialized. |
| 329 GrGLenum format, | 329 void initShaderPrecisionTable(const GrGLContextInfo&, const GrGLInterface*); |
| 330 GrGLenum type) const; | 330 |
| 331 bool doReadPixelsSupported(const GrGLInterface* intf, GrGLenum format, GrGLe
num type) const; |
| 331 | 332 |
| 332 // tracks configs that have been verified to pass the FBO completeness when | 333 // tracks configs that have been verified to pass the FBO completeness when |
| 333 // used as a color attachment | 334 // used as a color attachment |
| 334 VerifiedColorConfigs fVerifiedColorConfigs; | 335 VerifiedColorConfigs fVerifiedColorConfigs; |
| 335 | 336 |
| 336 SkTArray<StencilFormat, true> fStencilFormats; | 337 SkTArray<StencilFormat, true> fStencilFormats; |
| 337 // tracks configs that have been verified to pass the FBO completeness when | 338 // tracks configs that have been verified to pass the FBO completeness when |
| 338 // used as a color attachment when a particular stencil format is used | 339 // used as a color attachment when a particular stencil format is used |
| 339 // as a stencil attachment. | 340 // as a stencil attachment. |
| 340 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; | 341 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 bool fValue; | 411 bool fValue; |
| 411 }; | 412 }; |
| 412 | 413 |
| 413 mutable SkTHashCache<ReadPixelsSupportedFormats, | 414 mutable SkTHashCache<ReadPixelsSupportedFormats, |
| 414 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa
che; | 415 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa
che; |
| 415 | 416 |
| 416 typedef GrDrawTargetCaps INHERITED; | 417 typedef GrDrawTargetCaps INHERITED; |
| 417 }; | 418 }; |
| 418 | 419 |
| 419 #endif | 420 #endif |
| OLD | NEW |