| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 /// Is there support for GL_RED and GL_R8 | 203 /// Is there support for GL_RED and GL_R8 |
| 204 bool textureRedSupport() const { return fTextureRedSupport; } | 204 bool textureRedSupport() const { return fTextureRedSupport; } |
| 205 | 205 |
| 206 /// Is GL_ARB_IMAGING supported | 206 /// Is GL_ARB_IMAGING supported |
| 207 bool imagingSupport() const { return fImagingSupport; } | 207 bool imagingSupport() const { return fImagingSupport; } |
| 208 | 208 |
| 209 /// Is there support for Vertex Array Objects? | 209 /// Is there support for Vertex Array Objects? |
| 210 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; } | 210 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; } |
| 211 | 211 |
| 212 /// Is there support for glDraw*Instanced and glVertexAttribDivisor? | |
| 213 bool instancedDrawingSupport() const { return fInstancedDrawingSupport; } | |
| 214 | |
| 215 /// Is there support for GL_EXT_direct_state_access? | 212 /// Is there support for GL_EXT_direct_state_access? |
| 216 bool directStateAccessSupport() const { return fDirectStateAccessSupport; } | 213 bool directStateAccessSupport() const { return fDirectStateAccessSupport; } |
| 217 | 214 |
| 218 /// Is there support for GL_KHR_debug? | 215 /// Is there support for GL_KHR_debug? |
| 219 bool debugSupport() const { return fDebugSupport; } | 216 bool debugSupport() const { return fDebugSupport; } |
| 220 | 217 |
| 221 /// Is there support for ES2 compatability? | 218 /// Is there support for ES2 compatability? |
| 222 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } | 219 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } |
| 223 | 220 |
| 224 /// Can we call glDisable(GL_MULTISAMPLE)? | 221 /// Can we call glDisable(GL_MULTISAMPLE)? |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 bool fUnpackRowLengthSupport : 1; | 353 bool fUnpackRowLengthSupport : 1; |
| 357 bool fUnpackFlipYSupport : 1; | 354 bool fUnpackFlipYSupport : 1; |
| 358 bool fPackRowLengthSupport : 1; | 355 bool fPackRowLengthSupport : 1; |
| 359 bool fPackFlipYSupport : 1; | 356 bool fPackFlipYSupport : 1; |
| 360 bool fTextureUsageSupport : 1; | 357 bool fTextureUsageSupport : 1; |
| 361 bool fTexStorageSupport : 1; | 358 bool fTexStorageSupport : 1; |
| 362 bool fTextureRedSupport : 1; | 359 bool fTextureRedSupport : 1; |
| 363 bool fImagingSupport : 1; | 360 bool fImagingSupport : 1; |
| 364 bool fTwoFormatLimit : 1; | 361 bool fTwoFormatLimit : 1; |
| 365 bool fVertexArrayObjectSupport : 1; | 362 bool fVertexArrayObjectSupport : 1; |
| 366 bool fInstancedDrawingSupport : 1; | |
| 367 bool fDirectStateAccessSupport : 1; | 363 bool fDirectStateAccessSupport : 1; |
| 368 bool fDebugSupport : 1; | 364 bool fDebugSupport : 1; |
| 369 bool fES2CompatibilitySupport : 1; | 365 bool fES2CompatibilitySupport : 1; |
| 370 bool fMultisampleDisableSupport : 1; | 366 bool fMultisampleDisableSupport : 1; |
| 371 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 367 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 372 bool fIsCoreProfile : 1; | 368 bool fIsCoreProfile : 1; |
| 373 bool fBindFragDataLocationSupport : 1; | 369 bool fBindFragDataLocationSupport : 1; |
| 374 bool fSRGBWriteControl : 1; | 370 bool fSRGBWriteControl : 1; |
| 375 bool fRGBA8888PixelsOpsAreSlow : 1; | 371 bool fRGBA8888PixelsOpsAreSlow : 1; |
| 376 bool fPartialFBOReadIsSlow : 1; | 372 bool fPartialFBOReadIsSlow : 1; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 387 && fType == rhs.fType | 383 && fType == rhs.fType |
| 388 && fFboFormat == rhs.fFboFormat; | 384 && fFboFormat == rhs.fFboFormat; |
| 389 } | 385 } |
| 390 }; | 386 }; |
| 391 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; | 387 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; |
| 392 | 388 |
| 393 typedef GrCaps INHERITED; | 389 typedef GrCaps INHERITED; |
| 394 }; | 390 }; |
| 395 | 391 |
| 396 #endif | 392 #endif |
| OLD | NEW |