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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 /// Does ReadPixels support the provided format/type combo? | 229 /// Does ReadPixels support the provided format/type combo? |
230 bool readPixelsSupported(const GrGLInterface* intf, | 230 bool readPixelsSupported(const GrGLInterface* intf, |
231 GrGLenum format, | 231 GrGLenum format, |
232 GrGLenum type, | 232 GrGLenum type, |
233 GrGLenum currFboFormat) const; | 233 GrGLenum currFboFormat) const; |
234 | 234 |
235 bool isCoreProfile() const { return fIsCoreProfile; } | 235 bool isCoreProfile() const { return fIsCoreProfile; } |
236 | 236 |
237 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo
rt; } | 237 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo
rt; } |
238 | 238 |
| 239 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } |
| 240 |
239 /** | 241 /** |
240 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo
r attachments? | 242 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo
r attachments? |
241 * If false this does not mean sRGB is not supported but rather that if it i
s supported | 243 * If false this does not mean sRGB is not supported but rather that if it i
s supported |
242 * it cannot be turned off for configs that support it. | 244 * it cannot be turned off for configs that support it. |
243 */ | 245 */ |
244 bool srgbWriteControl() const { return fSRGBWriteControl; } | 246 bool srgbWriteControl() const { return fSRGBWriteControl; } |
245 | 247 |
246 /** | 248 /** |
247 * Returns a string containing the caps info. | 249 * Returns a string containing the caps info. |
248 */ | 250 */ |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 bool fDirectStateAccessSupport : 1; | 355 bool fDirectStateAccessSupport : 1; |
354 bool fDebugSupport : 1; | 356 bool fDebugSupport : 1; |
355 bool fES2CompatibilitySupport : 1; | 357 bool fES2CompatibilitySupport : 1; |
356 bool fMultisampleDisableSupport : 1; | 358 bool fMultisampleDisableSupport : 1; |
357 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 359 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
358 bool fIsCoreProfile : 1; | 360 bool fIsCoreProfile : 1; |
359 bool fBindFragDataLocationSupport : 1; | 361 bool fBindFragDataLocationSupport : 1; |
360 bool fSRGBWriteControl : 1; | 362 bool fSRGBWriteControl : 1; |
361 bool fRGBA8888PixelsOpsAreSlow : 1; | 363 bool fRGBA8888PixelsOpsAreSlow : 1; |
362 bool fPartialFBOReadIsSlow : 1; | 364 bool fPartialFBOReadIsSlow : 1; |
| 365 bool fBindUniformLocationSupport : 1; |
363 | 366 |
364 struct ReadPixelsSupportedFormat { | 367 struct ReadPixelsSupportedFormat { |
365 GrGLenum fFormat; | 368 GrGLenum fFormat; |
366 GrGLenum fType; | 369 GrGLenum fType; |
367 GrGLenum fFboFormat; | 370 GrGLenum fFboFormat; |
368 | 371 |
369 bool operator==(const ReadPixelsSupportedFormat& rhs) const { | 372 bool operator==(const ReadPixelsSupportedFormat& rhs) const { |
370 return fFormat == rhs.fFormat | 373 return fFormat == rhs.fFormat |
371 && fType == rhs.fType | 374 && fType == rhs.fType |
372 && fFboFormat == rhs.fFboFormat; | 375 && fFboFormat == rhs.fFboFormat; |
373 } | 376 } |
374 }; | 377 }; |
375 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; | 378 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; |
376 | 379 |
377 typedef GrCaps INHERITED; | 380 typedef GrCaps INHERITED; |
378 }; | 381 }; |
379 | 382 |
380 #endif | 383 #endif |
OLD | NEW |