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