| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 bool isColorConfigAndStencilFormatVerified( | 131 bool isColorConfigAndStencilFormatVerified( |
| 132 GrPixelConfig config, | 132 GrPixelConfig config, |
| 133 const GrGLStencilBuffer::Format& format) const; | 133 const GrGLStencilBuffer::Format& format) const; |
| 134 | 134 |
| 135 /** | 135 /** |
| 136 * Reports the type of MSAA FBO support. | 136 * Reports the type of MSAA FBO support. |
| 137 */ | 137 */ |
| 138 MSFBOType msFBOType() const { return fMSFBOType; } | 138 MSFBOType msFBOType() const { return fMSFBOType; } |
| 139 | 139 |
| 140 /** | 140 /** |
| 141 * Reports the maximum number of samples supported. | |
| 142 */ | |
| 143 int maxSampleCount() const { return fMaxSampleCount; } | |
| 144 | |
| 145 /** | |
| 146 * Reports the type of coverage sample AA support. | 141 * Reports the type of coverage sample AA support. |
| 147 */ | 142 */ |
| 148 CoverageAAType coverageAAType() const { return fCoverageAAType; } | 143 CoverageAAType coverageAAType() const { return fCoverageAAType; } |
| 149 | 144 |
| 150 /** | 145 /** |
| 151 * Chooses a supported coverage mode based on a desired sample count. The | 146 * Chooses a supported coverage mode based on a desired sample count. The |
| 152 * desired sample count is rounded up the next supported coverage sample | 147 * desired sample count is rounded up the next supported coverage sample |
| 153 * count unless a it is larger than the max in which case it is rounded | 148 * count unless a it is larger than the max in which case it is rounded |
| 154 * down. Once a coverage sample count is decided, the supported mode with | 149 * down. Once a coverage sample count is decided, the supported mode with |
| 155 * the fewest color samples is chosen. | 150 * the fewest color samples is chosen. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 SkTArray<StencilFormat, true> fStencilFormats; | 277 SkTArray<StencilFormat, true> fStencilFormats; |
| 283 // tracks configs that have been verified to pass the FBO completeness when | 278 // tracks configs that have been verified to pass the FBO completeness when |
| 284 // used as a color attachment when a particular stencil format is used | 279 // used as a color attachment when a particular stencil format is used |
| 285 // as a stencil attachment. | 280 // as a stencil attachment. |
| 286 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; | 281 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; |
| 287 | 282 |
| 288 int fMaxFragmentUniformVectors; | 283 int fMaxFragmentUniformVectors; |
| 289 int fMaxVertexAttributes; | 284 int fMaxVertexAttributes; |
| 290 | 285 |
| 291 MSFBOType fMSFBOType; | 286 MSFBOType fMSFBOType; |
| 292 int fMaxSampleCount; | |
| 293 CoverageAAType fCoverageAAType; | 287 CoverageAAType fCoverageAAType; |
| 294 SkTDArray<MSAACoverageMode> fMSAACoverageModes; | 288 SkTDArray<MSAACoverageMode> fMSAACoverageModes; |
| 295 | 289 |
| 296 bool fRGBA8RenderbufferSupport : 1; | 290 bool fRGBA8RenderbufferSupport : 1; |
| 297 bool fBGRAFormatSupport : 1; | 291 bool fBGRAFormatSupport : 1; |
| 298 bool fBGRAIsInternalFormat : 1; | 292 bool fBGRAIsInternalFormat : 1; |
| 299 bool fTextureSwizzleSupport : 1; | 293 bool fTextureSwizzleSupport : 1; |
| 300 bool fUnpackRowLengthSupport : 1; | 294 bool fUnpackRowLengthSupport : 1; |
| 301 bool fUnpackFlipYSupport : 1; | 295 bool fUnpackFlipYSupport : 1; |
| 302 bool fPackRowLengthSupport : 1; | 296 bool fPackRowLengthSupport : 1; |
| 303 bool fPackFlipYSupport : 1; | 297 bool fPackFlipYSupport : 1; |
| 304 bool fTextureUsageSupport : 1; | 298 bool fTextureUsageSupport : 1; |
| 305 bool fTexStorageSupport : 1; | 299 bool fTexStorageSupport : 1; |
| 306 bool fTextureRedSupport : 1; | 300 bool fTextureRedSupport : 1; |
| 307 bool fImagingSupport : 1; | 301 bool fImagingSupport : 1; |
| 308 bool fTwoFormatLimit : 1; | 302 bool fTwoFormatLimit : 1; |
| 309 bool fFragCoordsConventionSupport : 1; | 303 bool fFragCoordsConventionSupport : 1; |
| 310 bool fVertexArrayObjectSupport : 1; | 304 bool fVertexArrayObjectSupport : 1; |
| 311 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 305 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 312 bool fIsCoreProfile : 1; | 306 bool fIsCoreProfile : 1; |
| 313 }; | 307 }; |
| 314 | 308 |
| 315 #endif | 309 #endif |
| OLD | NEW |