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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 bool isVerified(GrPixelConfig config) const { | 279 bool isVerified(GrPixelConfig config) const { |
280 #if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT | 280 #if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT |
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& ctxInfo, const GrGLInterface* gl
i); | 289 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); |
290 void initStencilFormats(const GrGLContextInfo& ctxInfo); | 290 void initStencilFormats(const GrGLContextInfo&); |
| 291 void initConfigRenderableTable(const GrGLContextInfo&); |
291 | 292 |
292 // tracks configs that have been verified to pass the FBO completeness when | 293 // tracks configs that have been verified to pass the FBO completeness when |
293 // used as a color attachment | 294 // used as a color attachment |
294 VerifiedColorConfigs fVerifiedColorConfigs; | 295 VerifiedColorConfigs fVerifiedColorConfigs; |
295 | 296 |
296 SkTArray<StencilFormat, true> fStencilFormats; | 297 SkTArray<StencilFormat, true> fStencilFormats; |
297 // tracks configs that have been verified to pass the FBO completeness when | 298 // tracks configs that have been verified to pass the FBO completeness when |
298 // used as a color attachment when a particular stencil format is used | 299 // used as a color attachment when a particular stencil format is used |
299 // as a stencil attachment. | 300 // as a stencil attachment. |
300 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; | 301 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; |
(...skipping 24 matching lines...) Expand all Loading... |
325 bool fVertexArrayObjectSupport : 1; | 326 bool fVertexArrayObjectSupport : 1; |
326 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 327 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
327 bool fIsCoreProfile : 1; | 328 bool fIsCoreProfile : 1; |
328 bool fFixedFunctionSupport : 1; | 329 bool fFixedFunctionSupport : 1; |
329 bool fDiscardFBSupport : 1; | 330 bool fDiscardFBSupport : 1; |
330 | 331 |
331 typedef GrDrawTargetCaps INHERITED; | 332 typedef GrDrawTargetCaps INHERITED; |
332 }; | 333 }; |
333 | 334 |
334 #endif | 335 #endif |
OLD | NEW |