| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 return false; | 281 return false; |
| 282 #endif | 282 #endif |
| 283 int u32Idx = config / 32; | 283 int u32Idx = config / 32; |
| 284 int bitIdx = config % 32; | 284 int bitIdx = config % 32; |
| 285 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); | 285 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); |
| 286 } | 286 } |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); | 289 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); |
| 290 void initStencilFormats(const GrGLContextInfo&); | 290 void initStencilFormats(const GrGLContextInfo&); |
| 291 // This must be called after initFSAASupport(). |
| 291 void initConfigRenderableTable(const GrGLContextInfo&); | 292 void initConfigRenderableTable(const GrGLContextInfo&); |
| 292 | 293 |
| 293 // tracks configs that have been verified to pass the FBO completeness when | 294 // tracks configs that have been verified to pass the FBO completeness when |
| 294 // used as a color attachment | 295 // used as a color attachment |
| 295 VerifiedColorConfigs fVerifiedColorConfigs; | 296 VerifiedColorConfigs fVerifiedColorConfigs; |
| 296 | 297 |
| 297 SkTArray<StencilFormat, true> fStencilFormats; | 298 SkTArray<StencilFormat, true> fStencilFormats; |
| 298 // tracks configs that have been verified to pass the FBO completeness when | 299 // tracks configs that have been verified to pass the FBO completeness when |
| 299 // used as a color attachment when a particular stencil format is used | 300 // used as a color attachment when a particular stencil format is used |
| 300 // as a stencil attachment. | 301 // as a stencil attachment. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 326 bool fVertexArrayObjectSupport : 1; | 327 bool fVertexArrayObjectSupport : 1; |
| 327 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 328 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 328 bool fIsCoreProfile : 1; | 329 bool fIsCoreProfile : 1; |
| 329 bool fFixedFunctionSupport : 1; | 330 bool fFixedFunctionSupport : 1; |
| 330 bool fDiscardFBSupport : 1; | 331 bool fDiscardFBSupport : 1; |
| 331 | 332 |
| 332 typedef GrDrawTargetCaps INHERITED; | 333 typedef GrDrawTargetCaps INHERITED; |
| 333 }; | 334 }; |
| 334 | 335 |
| 335 #endif | 336 #endif |
| OLD | NEW |