diff options
author | Brian Osman <brianosman@google.com> | 2018-06-04 11:09:38 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-04 15:29:20 +0000 |
commit | ad445ce8416474056fded4fa912dae7f53e462ce (patch) | |
tree | a34447c088411f8f20117ddf03ba8ff4e7fbf23a /src/gpu/GrPaint.h | |
parent | feb9fa9e9ba47ec4a4e6480d90a88ad5cdb46020 (diff) |
Remove GrPaint::setGammaCorrect
Driving this from the presence of a color space makes no sense in the
new world, we should always be treating sRGB as such (end-to-end).
Change-Id: If3d8e740793321a2b1294ff72b04558d3b96cb53
Reviewed-on: https://skia-review.googlesource.com/131784
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrPaint.h')
-rw-r--r-- | src/gpu/GrPaint.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gpu/GrPaint.h b/src/gpu/GrPaint.h index 3a5fa11d03..c7e52fab07 100644 --- a/src/gpu/GrPaint.h +++ b/src/gpu/GrPaint.h @@ -62,14 +62,6 @@ public: void setDisableOutputConversionToSRGB(bool srgb) { fDisableOutputConversionToSRGB = srgb; } bool getDisableOutputConversionToSRGB() const { return fDisableOutputConversionToSRGB; } - /** - * Should rendering be gamma-correct, end-to-end. Causes sRGB render targets to behave - * as such (with linear blending). - */ - void setGammaCorrect(bool gammaCorrect) { - this->setDisableOutputConversionToSRGB(!gammaCorrect); - } - void setXPFactory(const GrXPFactory* xpFactory) { fXPFactory = xpFactory; fTrivial &= !SkToBool(xpFactory); |