| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 int bitIdx = config % 32; | 306 int bitIdx = config % 32; |
| 307 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); | 307 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); |
| 308 } | 308 } |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); | 311 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); |
| 312 void initStencilFormats(const GrGLContextInfo&); | 312 void initStencilFormats(const GrGLContextInfo&); |
| 313 // This must be called after initFSAASupport(). | 313 // This must be called after initFSAASupport(). |
| 314 void initConfigRenderableTable(const GrGLContextInfo&); | 314 void initConfigRenderableTable(const GrGLContextInfo&); |
| 315 | 315 |
| 316 void initCompressedTextureSupport(const GrGLContextInfo &); | |
| 317 | |
| 318 // tracks configs that have been verified to pass the FBO completeness when | 316 // tracks configs that have been verified to pass the FBO completeness when |
| 319 // used as a color attachment | 317 // used as a color attachment |
| 320 VerifiedColorConfigs fVerifiedColorConfigs; | 318 VerifiedColorConfigs fVerifiedColorConfigs; |
| 321 | 319 |
| 322 SkTArray<StencilFormat, true> fStencilFormats; | 320 SkTArray<StencilFormat, true> fStencilFormats; |
| 323 // tracks configs that have been verified to pass the FBO completeness when | 321 // tracks configs that have been verified to pass the FBO completeness when |
| 324 // used as a color attachment when a particular stencil format is used | 322 // used as a color attachment when a particular stencil format is used |
| 325 // as a stencil attachment. | 323 // as a stencil attachment. |
| 326 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; | 324 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; |
| 327 | 325 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 352 bool fVertexArrayObjectSupport : 1; | 350 bool fVertexArrayObjectSupport : 1; |
| 353 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 351 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 354 bool fIsCoreProfile : 1; | 352 bool fIsCoreProfile : 1; |
| 355 bool fFullClearIsFree : 1; | 353 bool fFullClearIsFree : 1; |
| 356 bool fDropsTileOnZeroDivide : 1; | 354 bool fDropsTileOnZeroDivide : 1; |
| 357 | 355 |
| 358 typedef GrDrawTargetCaps INHERITED; | 356 typedef GrDrawTargetCaps INHERITED; |
| 359 }; | 357 }; |
| 360 | 358 |
| 361 #endif | 359 #endif |
| OLD | NEW |