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

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

Issue 1830303002: Require sRGB write control for sRGB support. Add flag to GrPaint to suppress linear -> sRGB convers… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added comment to srgbSupport() Created 4 years, 8 months 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
« no previous file with comments | « src/gpu/GrYUVProvider.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; } 316 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; }
317 317
318 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; } 318 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; }
319 319
320 /// Are textures with GL_TEXTURE_RECTANGLE type supported. 320 /// Are textures with GL_TEXTURE_RECTANGLE type supported.
321 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } 321 bool rectangleTextureSupport() const { return fRectangleTextureSupport; }
322 322
323 /// GL_ARB_texture_swizzle 323 /// GL_ARB_texture_swizzle
324 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } 324 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; }
325 325
326 /**
327 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo r attachments?
328 * If false this does not mean sRGB is not supported but rather that if it i s supported
329 * it cannot be turned off for configs that support it.
330 */
331 bool srgbWriteControl() const { return fSRGBWriteControl; }
332
333 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; } 326 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; }
334 327
335 /** 328 /**
336 * Returns a string containing the caps info. 329 * Returns a string containing the caps info.
337 */ 330 */
338 SkString dump() const override; 331 SkString dump() const override;
339 332
340 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } 333 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; }
341 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } 334 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; }
342 bool rgbaToBgraReadbackConversionsAreSlow() const { 335 bool rgbaToBgraReadbackConversionsAreSlow() const {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 bool fDirectStateAccessSupport : 1; 388 bool fDirectStateAccessSupport : 1;
396 bool fDebugSupport : 1; 389 bool fDebugSupport : 1;
397 bool fES2CompatibilitySupport : 1; 390 bool fES2CompatibilitySupport : 1;
398 bool fMultisampleDisableSupport : 1; 391 bool fMultisampleDisableSupport : 1;
399 bool fDrawIndirectSupport : 1; 392 bool fDrawIndirectSupport : 1;
400 bool fMultiDrawIndirectSupport : 1; 393 bool fMultiDrawIndirectSupport : 1;
401 bool fBaseInstanceSupport : 1; 394 bool fBaseInstanceSupport : 1;
402 bool fUseNonVBOVertexAndIndexDynamicData : 1; 395 bool fUseNonVBOVertexAndIndexDynamicData : 1;
403 bool fIsCoreProfile : 1; 396 bool fIsCoreProfile : 1;
404 bool fBindFragDataLocationSupport : 1; 397 bool fBindFragDataLocationSupport : 1;
405 bool fSRGBWriteControl : 1;
406 bool fRGBA8888PixelsOpsAreSlow : 1; 398 bool fRGBA8888PixelsOpsAreSlow : 1;
407 bool fPartialFBOReadIsSlow : 1; 399 bool fPartialFBOReadIsSlow : 1;
408 bool fBindUniformLocationSupport : 1; 400 bool fBindUniformLocationSupport : 1;
409 bool fRectangleTextureSupport : 1; 401 bool fRectangleTextureSupport : 1;
410 bool fTextureSwizzleSupport : 1; 402 bool fTextureSwizzleSupport : 1;
411 bool fMipMapLevelAndLodControlSupport : 1; 403 bool fMipMapLevelAndLodControlSupport : 1;
412 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; 404 bool fRGBAToBGRAReadbackConversionsAreSlow : 1;
413 405
414 BlitFramebufferSupport fBlitFramebufferSupport; 406 BlitFramebufferSupport fBlitFramebufferSupport;
415 407
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 473
482 GrSwizzle fSwizzle; 474 GrSwizzle fSwizzle;
483 }; 475 };
484 476
485 ConfigInfo fConfigTable[kGrPixelConfigCnt]; 477 ConfigInfo fConfigTable[kGrPixelConfigCnt];
486 478
487 typedef GrCaps INHERITED; 479 typedef GrCaps INHERITED;
488 }; 480 };
489 481
490 #endif 482 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrYUVProvider.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698