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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 * TODO(joshualitt) On desktop opengl 4.2+ we can achieve something similar
to this effect | 171 * TODO(joshualitt) On desktop opengl 4.2+ we can achieve something similar
to this effect |
172 */ | 172 */ |
173 bool fbFetchSupport() const { return fFBFetchSupport; } | 173 bool fbFetchSupport() const { return fFBFetchSupport; } |
174 | 174 |
175 bool fbFetchNeedsCustomOutput() const { return fFBFetchNeedsCustomOutput; } | 175 bool fbFetchNeedsCustomOutput() const { return fFBFetchNeedsCustomOutput; } |
176 | 176 |
177 const char* fbFetchColorName() const { return fFBFetchColorName; } | 177 const char* fbFetchColorName() const { return fFBFetchColorName; } |
178 | 178 |
179 const char* fbFetchExtensionString() const { return fFBFetchExtensionString;
} | 179 const char* fbFetchExtensionString() const { return fFBFetchExtensionString;
} |
180 | 180 |
| 181 bool fbMixedSamplesSupport() const { return fFBMixedSamplesSupport; } |
| 182 |
181 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; } | 183 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; } |
182 | 184 |
183 /// What type of buffer mapping is supported? | 185 /// What type of buffer mapping is supported? |
184 MapBufferType mapBufferType() const { return fMapBufferType; } | 186 MapBufferType mapBufferType() const { return fMapBufferType; } |
185 | 187 |
186 /** | 188 /** |
187 * Gets an array of legal stencil formats. These formats are not guaranteed | 189 * Gets an array of legal stencil formats. These formats are not guaranteed |
188 * to be supported by the driver but are legal GLenum names given the GL | 190 * to be supported by the driver but are legal GLenum names given the GL |
189 * version and extensions supported. | 191 * version and extensions supported. |
190 */ | 192 */ |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 bool fTwoFormatLimit : 1; | 384 bool fTwoFormatLimit : 1; |
383 bool fFragCoordsConventionSupport : 1; | 385 bool fFragCoordsConventionSupport : 1; |
384 bool fVertexArrayObjectSupport : 1; | 386 bool fVertexArrayObjectSupport : 1; |
385 bool fES2CompatibilitySupport : 1; | 387 bool fES2CompatibilitySupport : 1; |
386 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 388 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
387 bool fIsCoreProfile : 1; | 389 bool fIsCoreProfile : 1; |
388 bool fFullClearIsFree : 1; | 390 bool fFullClearIsFree : 1; |
389 bool fDropsTileOnZeroDivide : 1; | 391 bool fDropsTileOnZeroDivide : 1; |
390 bool fFBFetchSupport : 1; | 392 bool fFBFetchSupport : 1; |
391 bool fFBFetchNeedsCustomOutput : 1; | 393 bool fFBFetchNeedsCustomOutput : 1; |
| 394 bool fFBMixedSamplesSupport : 1; |
392 | 395 |
393 const char* fFBFetchColorName; | 396 const char* fFBFetchColorName; |
394 const char* fFBFetchExtensionString; | 397 const char* fFBFetchExtensionString; |
395 | 398 |
396 struct ReadPixelsSupportedFormat { | 399 struct ReadPixelsSupportedFormat { |
397 GrGLenum fFormat; | 400 GrGLenum fFormat; |
398 GrGLenum fType; | 401 GrGLenum fType; |
399 GrGLenum fFboFormat; | 402 GrGLenum fFboFormat; |
400 | 403 |
401 bool operator==(const ReadPixelsSupportedFormat& rhs) const { | 404 bool operator==(const ReadPixelsSupportedFormat& rhs) const { |
402 return fFormat == rhs.fFormat | 405 return fFormat == rhs.fFormat |
403 && fType == rhs.fType | 406 && fType == rhs.fType |
404 && fFboFormat == rhs.fFboFormat; | 407 && fFboFormat == rhs.fFboFormat; |
405 } | 408 } |
406 }; | 409 }; |
407 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; | 410 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; |
408 | 411 |
409 typedef GrDrawTargetCaps INHERITED; | 412 typedef GrDrawTargetCaps INHERITED; |
410 }; | 413 }; |
411 | 414 |
412 #endif | 415 #endif |
OLD | NEW |