Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: src/gpu/gl/GrGLCaps.h

Issue 2539993002: Enable sRGB on iOS, make sRGB decode support optional (Closed)
Patch Set: Remove testing hacks Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 /// Are textures with GL_TEXTURE_RECTANGLE type supported. 338 /// Are textures with GL_TEXTURE_RECTANGLE type supported.
339 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } 339 bool rectangleTextureSupport() const { return fRectangleTextureSupport; }
340 340
341 /// GL_ARB_texture_swizzle 341 /// GL_ARB_texture_swizzle
342 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } 342 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; }
343 343
344 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; } 344 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; }
345 345
346 bool doManualMipmapping() const { return fDoManualMipmapping; } 346 bool doManualMipmapping() const { return fDoManualMipmapping; }
347 347
348 bool srgbDecodeSupport() const { return fSRGBDecodeSupport; }
349
348 /** 350 /**
349 * Returns a string containing the caps info. 351 * Returns a string containing the caps info.
350 */ 352 */
351 SkString dump() const override; 353 SkString dump() const override;
352 354
353 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } 355 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; }
354 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } 356 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; }
355 bool rgbaToBgraReadbackConversionsAreSlow() const { 357 bool rgbaToBgraReadbackConversionsAreSlow() const {
356 return fRGBAToBGRAReadbackConversionsAreSlow; 358 return fRGBAToBGRAReadbackConversionsAreSlow;
357 } 359 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 bool fIsCoreProfile : 1; 415 bool fIsCoreProfile : 1;
414 bool fBindFragDataLocationSupport : 1; 416 bool fBindFragDataLocationSupport : 1;
415 bool fRGBA8888PixelsOpsAreSlow : 1; 417 bool fRGBA8888PixelsOpsAreSlow : 1;
416 bool fPartialFBOReadIsSlow : 1; 418 bool fPartialFBOReadIsSlow : 1;
417 bool fBindUniformLocationSupport : 1; 419 bool fBindUniformLocationSupport : 1;
418 bool fRectangleTextureSupport : 1; 420 bool fRectangleTextureSupport : 1;
419 bool fTextureSwizzleSupport : 1; 421 bool fTextureSwizzleSupport : 1;
420 bool fMipMapLevelAndLodControlSupport : 1; 422 bool fMipMapLevelAndLodControlSupport : 1;
421 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; 423 bool fRGBAToBGRAReadbackConversionsAreSlow : 1;
422 bool fDoManualMipmapping : 1; 424 bool fDoManualMipmapping : 1;
425 bool fSRGBDecodeSupport : 1;
426 bool fRequireDecodeForSRGB : 1;
423 427
424 uint32_t fBlitFramebufferFlags; 428 uint32_t fBlitFramebufferFlags;
425 429
426 /** Number type of the components (with out considering number of bits.) */ 430 /** Number type of the components (with out considering number of bits.) */
427 enum FormatType { 431 enum FormatType {
428 kNormalizedFixedPoint_FormatType, 432 kNormalizedFixedPoint_FormatType,
429 kFloat_FormatType, 433 kFloat_FormatType,
430 kInteger_FormatType, 434 kInteger_FormatType,
431 }; 435 };
432 436
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 500
497 GrSwizzle fSwizzle; 501 GrSwizzle fSwizzle;
498 }; 502 };
499 503
500 ConfigInfo fConfigTable[kGrPixelConfigCnt]; 504 ConfigInfo fConfigTable[kGrPixelConfigCnt];
501 505
502 typedef GrCaps INHERITED; 506 typedef GrCaps INHERITED;
503 }; 507 };
504 508
505 #endif 509 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContextOptions.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | src/gpu/gl/GrGLCaps.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698