| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 #if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT | 297 #if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT |
| 298 return false; | 298 return false; |
| 299 #endif | 299 #endif |
| 300 int u32Idx = config / 32; | 300 int u32Idx = config / 32; |
| 301 int bitIdx = config % 32; | 301 int bitIdx = config % 32; |
| 302 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); | 302 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); |
| 303 } | 303 } |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); | 306 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); |
| 307 void initBlendEqationSupport(const GrGLContextInfo&); |
| 307 void initStencilFormats(const GrGLContextInfo&); | 308 void initStencilFormats(const GrGLContextInfo&); |
| 308 // This must be called after initFSAASupport(). | 309 // This must be called after initFSAASupport(). |
| 309 void initConfigRenderableTable(const GrGLContextInfo&); | 310 void initConfigRenderableTable(const GrGLContextInfo&); |
| 310 void initConfigTexturableTable(const GrGLContextInfo&, const GrGLInterface*)
; | 311 void initConfigTexturableTable(const GrGLContextInfo&, const GrGLInterface*)
; |
| 311 | 312 |
| 312 bool doReadPixelsSupported(const GrGLInterface* intf, GrGLenum format, GrGLe
num type) const; | 313 bool doReadPixelsSupported(const GrGLInterface* intf, GrGLenum format, GrGLe
num type) const; |
| 313 | 314 |
| 314 // tracks configs that have been verified to pass the FBO completeness when | 315 // tracks configs that have been verified to pass the FBO completeness when |
| 315 // used as a color attachment | 316 // used as a color attachment |
| 316 VerifiedColorConfigs fVerifiedColorConfigs; | 317 VerifiedColorConfigs fVerifiedColorConfigs; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 443 |
| 443 AdvBlendEqInteraction fAdvBlendEqInteraction; | 444 AdvBlendEqInteraction fAdvBlendEqInteraction; |
| 444 | 445 |
| 445 friend class GrGLCaps; // For initialization. | 446 friend class GrGLCaps; // For initialization. |
| 446 | 447 |
| 447 typedef GrShaderCaps INHERITED; | 448 typedef GrShaderCaps INHERITED; |
| 448 }; | 449 }; |
| 449 | 450 |
| 450 | 451 |
| 451 #endif | 452 #endif |
| OLD | NEW |