| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 /// Is there support for glTexStorage | 189 /// Is there support for glTexStorage |
| 190 bool texStorageSupport() const { return fTexStorageSupport; } | 190 bool texStorageSupport() const { return fTexStorageSupport; } |
| 191 | 191 |
| 192 /// Is there support for GL_RED and GL_R8 | 192 /// Is there support for GL_RED and GL_R8 |
| 193 bool textureRedSupport() const { return fTextureRedSupport; } | 193 bool textureRedSupport() const { return fTextureRedSupport; } |
| 194 | 194 |
| 195 /// Is GL_ARB_IMAGING supported | 195 /// Is GL_ARB_IMAGING supported |
| 196 bool imagingSupport() const { return fImagingSupport; } | 196 bool imagingSupport() const { return fImagingSupport; } |
| 197 | 197 |
| 198 /// Is GL_ARB_fragment_coord_conventions supported? | |
| 199 bool fragCoordConventionsSupport() const { return fFragCoordsConventionSuppo
rt; } | |
| 200 | |
| 201 /// Is there support for Vertex Array Objects? | 198 /// Is there support for Vertex Array Objects? |
| 202 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; } | 199 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; } |
| 203 | 200 |
| 204 /// Is there support for glDraw*Instanced and glVertexAttribDivisor? | 201 /// Is there support for glDraw*Instanced and glVertexAttribDivisor? |
| 205 bool instancedDrawingSupport() const { return fInstancedDrawingSupport; } | 202 bool instancedDrawingSupport() const { return fInstancedDrawingSupport; } |
| 206 | 203 |
| 207 /// Is there support for GL_EXT_direct_state_access? | 204 /// Is there support for GL_EXT_direct_state_access? |
| 208 bool directStateAccessSupport() const { return fDirectStateAccessSupport; } | 205 bool directStateAccessSupport() const { return fDirectStateAccessSupport; } |
| 209 | 206 |
| 210 /// Is there support for GL_KHR_debug? | 207 /// Is there support for GL_KHR_debug? |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 bool fBGRAIsInternalFormat : 1; | 335 bool fBGRAIsInternalFormat : 1; |
| 339 bool fUnpackRowLengthSupport : 1; | 336 bool fUnpackRowLengthSupport : 1; |
| 340 bool fUnpackFlipYSupport : 1; | 337 bool fUnpackFlipYSupport : 1; |
| 341 bool fPackRowLengthSupport : 1; | 338 bool fPackRowLengthSupport : 1; |
| 342 bool fPackFlipYSupport : 1; | 339 bool fPackFlipYSupport : 1; |
| 343 bool fTextureUsageSupport : 1; | 340 bool fTextureUsageSupport : 1; |
| 344 bool fTexStorageSupport : 1; | 341 bool fTexStorageSupport : 1; |
| 345 bool fTextureRedSupport : 1; | 342 bool fTextureRedSupport : 1; |
| 346 bool fImagingSupport : 1; | 343 bool fImagingSupport : 1; |
| 347 bool fTwoFormatLimit : 1; | 344 bool fTwoFormatLimit : 1; |
| 348 bool fFragCoordsConventionSupport : 1; | |
| 349 bool fVertexArrayObjectSupport : 1; | 345 bool fVertexArrayObjectSupport : 1; |
| 350 bool fInstancedDrawingSupport : 1; | 346 bool fInstancedDrawingSupport : 1; |
| 351 bool fDirectStateAccessSupport : 1; | 347 bool fDirectStateAccessSupport : 1; |
| 352 bool fDebugSupport : 1; | 348 bool fDebugSupport : 1; |
| 353 bool fES2CompatibilitySupport : 1; | 349 bool fES2CompatibilitySupport : 1; |
| 354 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 350 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 355 bool fIsCoreProfile : 1; | 351 bool fIsCoreProfile : 1; |
| 356 bool fBindFragDataLocationSupport : 1; | 352 bool fBindFragDataLocationSupport : 1; |
| 357 bool fSRGBWriteControl : 1; | 353 bool fSRGBWriteControl : 1; |
| 358 bool fRGBA8888PixelsOpsAreSlow : 1; | 354 bool fRGBA8888PixelsOpsAreSlow : 1; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 369 && fType == rhs.fType | 365 && fType == rhs.fType |
| 370 && fFboFormat == rhs.fFboFormat; | 366 && fFboFormat == rhs.fFboFormat; |
| 371 } | 367 } |
| 372 }; | 368 }; |
| 373 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; | 369 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; |
| 374 | 370 |
| 375 typedef GrCaps INHERITED; | 371 typedef GrCaps INHERITED; |
| 376 }; | 372 }; |
| 377 | 373 |
| 378 #endif | 374 #endif |
| OLD | NEW |