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 |
316 // tracks configs that have been verified to pass the FBO completeness when | 318 // tracks configs that have been verified to pass the FBO completeness when |
317 // used as a color attachment | 319 // used as a color attachment |
318 VerifiedColorConfigs fVerifiedColorConfigs; | 320 VerifiedColorConfigs fVerifiedColorConfigs; |
319 | 321 |
320 SkTArray<StencilFormat, true> fStencilFormats; | 322 SkTArray<StencilFormat, true> fStencilFormats; |
321 // tracks configs that have been verified to pass the FBO completeness when | 323 // tracks configs that have been verified to pass the FBO completeness when |
322 // used as a color attachment when a particular stencil format is used | 324 // used as a color attachment when a particular stencil format is used |
323 // as a stencil attachment. | 325 // as a stencil attachment. |
324 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; | 326 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; |
325 | 327 |
(...skipping 24 matching lines...) Expand all Loading... |
350 bool fVertexArrayObjectSupport : 1; | 352 bool fVertexArrayObjectSupport : 1; |
351 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 353 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
352 bool fIsCoreProfile : 1; | 354 bool fIsCoreProfile : 1; |
353 bool fFullClearIsFree : 1; | 355 bool fFullClearIsFree : 1; |
354 bool fDropsTileOnZeroDivide : 1; | 356 bool fDropsTileOnZeroDivide : 1; |
355 | 357 |
356 typedef GrDrawTargetCaps INHERITED; | 358 typedef GrDrawTargetCaps INHERITED; |
357 }; | 359 }; |
358 | 360 |
359 #endif | 361 #endif |
OLD | NEW |