| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 * to be supported by the driver but are legal GLenum names given the GL | 208 * to be supported by the driver but are legal GLenum names given the GL |
| 209 * version and extensions supported. | 209 * version and extensions supported. |
| 210 */ | 210 */ |
| 211 const SkTArray<StencilFormat, true>& stencilFormats() const { | 211 const SkTArray<StencilFormat, true>& stencilFormats() const { |
| 212 return fStencilFormats; | 212 return fStencilFormats; |
| 213 } | 213 } |
| 214 | 214 |
| 215 /// The maximum number of fragment uniform vectors (GLES has min. 16). | 215 /// The maximum number of fragment uniform vectors (GLES has min. 16). |
| 216 int maxFragmentUniformVectors() const { return fMaxFragmentUniformVectors; } | 216 int maxFragmentUniformVectors() const { return fMaxFragmentUniformVectors; } |
| 217 | 217 |
| 218 // maximum number of attribute values per vertex | 218 /// maximum number of attribute values per vertex |
| 219 int maxVertexAttributes() const { return fMaxVertexAttributes; } | 219 int maxVertexAttributes() const { return fMaxVertexAttributes; } |
| 220 | 220 |
| 221 /// maximum number of texture units accessible in the fragment shader. |
| 222 int maxFragmentTextureUnits() const { return fMaxFragmentTextureUnits; } |
| 223 |
| 221 /// ES requires an extension to support RGBA8 in RenderBufferStorage | 224 /// ES requires an extension to support RGBA8 in RenderBufferStorage |
| 222 bool rgba8RenderbufferSupport() const { return fRGBA8RenderbufferSupport; } | 225 bool rgba8RenderbufferSupport() const { return fRGBA8RenderbufferSupport; } |
| 223 | 226 |
| 224 /// Is GL_BGRA supported | 227 /// Is GL_BGRA supported |
| 225 bool bgraFormatSupport() const { return fBGRAFormatSupport; } | 228 bool bgraFormatSupport() const { return fBGRAFormatSupport; } |
| 226 | 229 |
| 227 /** | 230 /** |
| 228 * Depending on the ES extensions present the BGRA external format may | 231 * Depending on the ES extensions present the BGRA external format may |
| 229 * correspond either a BGRA or RGBA internalFormat. On desktop GL it is | 232 * correspond either a BGRA or RGBA internalFormat. On desktop GL it is |
| 230 * RGBA. | 233 * RGBA. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 VerifiedColorConfigs fVerifiedColorConfigs; | 328 VerifiedColorConfigs fVerifiedColorConfigs; |
| 326 | 329 |
| 327 SkTArray<StencilFormat, true> fStencilFormats; | 330 SkTArray<StencilFormat, true> fStencilFormats; |
| 328 // tracks configs that have been verified to pass the FBO completeness when | 331 // tracks configs that have been verified to pass the FBO completeness when |
| 329 // used as a color attachment when a particular stencil format is used | 332 // used as a color attachment when a particular stencil format is used |
| 330 // as a stencil attachment. | 333 // as a stencil attachment. |
| 331 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; | 334 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; |
| 332 | 335 |
| 333 int fMaxFragmentUniformVectors; | 336 int fMaxFragmentUniformVectors; |
| 334 int fMaxVertexAttributes; | 337 int fMaxVertexAttributes; |
| 338 int fMaxFragmentTextureUnits; |
| 335 | 339 |
| 336 MSFBOType fMSFBOType; | 340 MSFBOType fMSFBOType; |
| 337 CoverageAAType fCoverageAAType; | 341 CoverageAAType fCoverageAAType; |
| 338 SkTDArray<MSAACoverageMode> fMSAACoverageModes; | 342 SkTDArray<MSAACoverageMode> fMSAACoverageModes; |
| 339 | 343 |
| 340 FBFetchType fFBFetchType; | 344 FBFetchType fFBFetchType; |
| 341 | 345 |
| 342 bool fRGBA8RenderbufferSupport : 1; | 346 bool fRGBA8RenderbufferSupport : 1; |
| 343 bool fBGRAFormatSupport : 1; | 347 bool fBGRAFormatSupport : 1; |
| 344 bool fBGRAIsInternalFormat : 1; | 348 bool fBGRAIsInternalFormat : 1; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 355 bool fFragCoordsConventionSupport : 1; | 359 bool fFragCoordsConventionSupport : 1; |
| 356 bool fVertexArrayObjectSupport : 1; | 360 bool fVertexArrayObjectSupport : 1; |
| 357 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 361 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 358 bool fIsCoreProfile : 1; | 362 bool fIsCoreProfile : 1; |
| 359 bool fDiscardFBSupport : 1; | 363 bool fDiscardFBSupport : 1; |
| 360 | 364 |
| 361 typedef GrDrawTargetCaps INHERITED; | 365 typedef GrDrawTargetCaps INHERITED; |
| 362 }; | 366 }; |
| 363 | 367 |
| 364 #endif | 368 #endif |
| OLD | NEW |