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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 /// Is GL_ARB_fragment_coord_conventions supported? | 231 /// Is GL_ARB_fragment_coord_conventions supported? |
232 bool fragCoordConventionsSupport() const { return fFragCoordsConventionSuppo
rt; } | 232 bool fragCoordConventionsSupport() const { return fFragCoordsConventionSuppo
rt; } |
233 | 233 |
234 /// Is there support for Vertex Array Objects? | 234 /// Is there support for Vertex Array Objects? |
235 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; } | 235 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; } |
236 | 236 |
237 /// Is there support for ES2 compatability? | 237 /// Is there support for ES2 compatability? |
238 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } | 238 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } |
239 | 239 |
| 240 /// Can we call glDisable(GL_MULTISAMPLE)? |
| 241 bool multisampleDisableSupport() const { return fMultisampleDisableSupport;
} |
| 242 |
240 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. | 243 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. |
241 bool useNonVBOVertexAndIndexDynamicData() const { | 244 bool useNonVBOVertexAndIndexDynamicData() const { |
242 return fUseNonVBOVertexAndIndexDynamicData; | 245 return fUseNonVBOVertexAndIndexDynamicData; |
243 } | 246 } |
244 | 247 |
245 /// Does ReadPixels support the provided format/type combo? | 248 /// Does ReadPixels support the provided format/type combo? |
246 bool readPixelsSupported(const GrGLInterface* intf, | 249 bool readPixelsSupported(const GrGLInterface* intf, |
247 GrGLenum format, | 250 GrGLenum format, |
248 GrGLenum type, | 251 GrGLenum type, |
249 GrGLenum currFboFormat) const; | 252 GrGLenum currFboFormat) const; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 bool fPackRowLengthSupport : 1; | 349 bool fPackRowLengthSupport : 1; |
347 bool fPackFlipYSupport : 1; | 350 bool fPackFlipYSupport : 1; |
348 bool fTextureUsageSupport : 1; | 351 bool fTextureUsageSupport : 1; |
349 bool fTexStorageSupport : 1; | 352 bool fTexStorageSupport : 1; |
350 bool fTextureRedSupport : 1; | 353 bool fTextureRedSupport : 1; |
351 bool fImagingSupport : 1; | 354 bool fImagingSupport : 1; |
352 bool fTwoFormatLimit : 1; | 355 bool fTwoFormatLimit : 1; |
353 bool fFragCoordsConventionSupport : 1; | 356 bool fFragCoordsConventionSupport : 1; |
354 bool fVertexArrayObjectSupport : 1; | 357 bool fVertexArrayObjectSupport : 1; |
355 bool fES2CompatibilitySupport : 1; | 358 bool fES2CompatibilitySupport : 1; |
| 359 bool fMultisampleDisableSupport : 1; |
356 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 360 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
357 bool fIsCoreProfile : 1; | 361 bool fIsCoreProfile : 1; |
358 bool fFullClearIsFree : 1; | 362 bool fFullClearIsFree : 1; |
359 bool fFBMixedSamplesSupport : 1; | 363 bool fFBMixedSamplesSupport : 1; |
360 | 364 |
361 struct ReadPixelsSupportedFormat { | 365 struct ReadPixelsSupportedFormat { |
362 GrGLenum fFormat; | 366 GrGLenum fFormat; |
363 GrGLenum fType; | 367 GrGLenum fType; |
364 GrGLenum fFboFormat; | 368 GrGLenum fFboFormat; |
365 | 369 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 const char* fFBFetchColorName; | 459 const char* fFBFetchColorName; |
456 const char* fFBFetchExtensionString; | 460 const char* fFBFetchExtensionString; |
457 | 461 |
458 AdvBlendEqInteraction fAdvBlendEqInteraction; | 462 AdvBlendEqInteraction fAdvBlendEqInteraction; |
459 | 463 |
460 typedef GrShaderCaps INHERITED; | 464 typedef GrShaderCaps INHERITED; |
461 }; | 465 }; |
462 | 466 |
463 | 467 |
464 #endif | 468 #endif |
OLD | NEW |