diff options
author | 2018-07-02 15:21:46 -0400 | |
---|---|---|
committer | 2018-07-02 20:13:52 +0000 | |
commit | 9aa30c6ee0e5e2ba4ccc25a4913966a65f808f28 (patch) | |
tree | 51a77c3460dbb9237fb504ad971c36d2633c4d76 /src/gpu/GrPipeline.h | |
parent | 2f046f1f526715f2c2179e825529770fae5ff078 (diff) |
Remove sRGB config checks based on color space
All of the restrictions/assumptions that led to this code are gone,
so we can always use appropriate color space.
For the YUV provider, if/when we re-introduce 8888 sRGB, the color
space will have a linear transfer function, so the color space
xform will automatically do what was happening here. That removes
the last usage of framebuffer sRGB control, so we can remove all
kinds of GrPaint and GrPipeline plumbing for that feature.
Change-Id: I24af1d498dbc75210f92f8c61b10aa31eec022f6
Reviewed-on: https://skia-review.googlesource.com/138986
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r-- | src/gpu/GrPipeline.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h index f60a6d410b..3e5b64310f 100644 --- a/src/gpu/GrPipeline.h +++ b/src/gpu/GrPipeline.h @@ -52,18 +52,8 @@ public: * Modifies the vertex shader so that vertices will be positioned at pixel centers. */ kSnapVerticesToPixelCenters_Flag = 0x2, - /** Disables conversion to sRGB from linear when writing to a sRGB destination. */ - kDisableOutputConversionToSRGB_Flag = 0x4, }; - static uint32_t SRGBFlagsFromPaint(const GrPaint& paint) { - uint32_t flags = 0; - if (paint.getDisableOutputConversionToSRGB()) { - flags |= kDisableOutputConversionToSRGB_Flag; - } - return flags; - } - enum ScissorState : bool { kEnabled = true, kDisabled = false @@ -189,9 +179,6 @@ public: bool snapVerticesToPixelCenters() const { return SkToBool(fFlags & kSnapVerticesToPixelCenters_Flag); } - bool getDisableOutputConversionToSRGB() const { - return SkToBool(fFlags & kDisableOutputConversionToSRGB_Flag); - } bool hasStencilClip() const { return SkToBool(fFlags & kHasStencilClip_Flag); } @@ -211,9 +198,6 @@ public: if (flags & GrPipeline::kHWAntialias_Flag) { result.append("HW Antialiasing enabled.\n"); } - if (flags & GrPipeline::kDisableOutputConversionToSRGB_Flag) { - result.append("Disable output conversion to sRGB.\n"); - } return result; } return SkString("No pipeline flags\n"); |