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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 bool isCoreProfile() const { return fIsCoreProfile; } | 291 bool isCoreProfile() const { return fIsCoreProfile; } |
292 | 292 |
293 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo
rt; } | 293 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo
rt; } |
294 | 294 |
295 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } | 295 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } |
296 | 296 |
297 /// Are textures with GL_TEXTURE_EXTERNAL_OES type supported. | 297 /// Are textures with GL_TEXTURE_EXTERNAL_OES type supported. |
298 bool externalTextureSupport() const { return fExternalTextureSupport; } | 298 bool externalTextureSupport() const { return fExternalTextureSupport; } |
299 | 299 |
| 300 /// Are textures with GL_TEXTURE_RECTANGLE type supported. |
| 301 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } |
| 302 |
300 /// GL_ARB_texture_swizzle | 303 /// GL_ARB_texture_swizzle |
301 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } | 304 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } |
302 | 305 |
303 /** | 306 /** |
304 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo
r attachments? | 307 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo
r attachments? |
305 * If false this does not mean sRGB is not supported but rather that if it i
s supported | 308 * If false this does not mean sRGB is not supported but rather that if it i
s supported |
306 * it cannot be turned off for configs that support it. | 309 * it cannot be turned off for configs that support it. |
307 */ | 310 */ |
308 bool srgbWriteControl() const { return fSRGBWriteControl; } | 311 bool srgbWriteControl() const { return fSRGBWriteControl; } |
309 | 312 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 bool fES2CompatibilitySupport : 1; | 373 bool fES2CompatibilitySupport : 1; |
371 bool fMultisampleDisableSupport : 1; | 374 bool fMultisampleDisableSupport : 1; |
372 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 375 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
373 bool fIsCoreProfile : 1; | 376 bool fIsCoreProfile : 1; |
374 bool fBindFragDataLocationSupport : 1; | 377 bool fBindFragDataLocationSupport : 1; |
375 bool fSRGBWriteControl : 1; | 378 bool fSRGBWriteControl : 1; |
376 bool fRGBA8888PixelsOpsAreSlow : 1; | 379 bool fRGBA8888PixelsOpsAreSlow : 1; |
377 bool fPartialFBOReadIsSlow : 1; | 380 bool fPartialFBOReadIsSlow : 1; |
378 bool fBindUniformLocationSupport : 1; | 381 bool fBindUniformLocationSupport : 1; |
379 bool fExternalTextureSupport : 1; | 382 bool fExternalTextureSupport : 1; |
| 383 bool fRectangleTextureSupport : 1; |
380 bool fTextureSwizzleSupport : 1; | 384 bool fTextureSwizzleSupport : 1; |
381 | 385 |
382 /** Number type of the components (with out considering number of bits.) */ | 386 /** Number type of the components (with out considering number of bits.) */ |
383 enum FormatType { | 387 enum FormatType { |
384 kNormalizedFixedPoint_FormatType, | 388 kNormalizedFixedPoint_FormatType, |
385 kFloat_FormatType, | 389 kFloat_FormatType, |
386 }; | 390 }; |
387 | 391 |
388 struct ReadPixelsFormat { | 392 struct ReadPixelsFormat { |
389 ReadPixelsFormat() : fFormat(0), fType(0) {} | 393 ReadPixelsFormat() : fFormat(0), fType(0) {} |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 450 |
447 GrSwizzle fSwizzle; | 451 GrSwizzle fSwizzle; |
448 }; | 452 }; |
449 | 453 |
450 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 454 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
451 | 455 |
452 typedef GrCaps INHERITED; | 456 typedef GrCaps INHERITED; |
453 }; | 457 }; |
454 | 458 |
455 #endif | 459 #endif |
OLD | NEW |