diff options
Diffstat (limited to 'src/gpu/GrPaint.h')
-rw-r--r-- | src/gpu/GrPaint.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gpu/GrPaint.h b/src/gpu/GrPaint.h index c5b45633a7..3a5fa11d03 100644 --- a/src/gpu/GrPaint.h +++ b/src/gpu/GrPaint.h @@ -63,19 +63,11 @@ public: bool getDisableOutputConversionToSRGB() const { return fDisableOutputConversionToSRGB; } /** - * Should sRGB inputs be allowed to perform sRGB to linear conversion. With this flag - * set to false, sRGB textures will be treated as linear (including filtering). - */ - void setAllowSRGBInputs(bool allowSRGBInputs) { fAllowSRGBInputs = allowSRGBInputs; } - bool getAllowSRGBInputs() const { return fAllowSRGBInputs; } - - /** * Should rendering be gamma-correct, end-to-end. Causes sRGB render targets to behave - * as such (with linear blending), and sRGB inputs to be filtered and decoded correctly. + * as such (with linear blending). */ void setGammaCorrect(bool gammaCorrect) { this->setDisableOutputConversionToSRGB(!gammaCorrect); - this->setAllowSRGBInputs(gammaCorrect); } void setXPFactory(const GrXPFactory* xpFactory) { @@ -155,7 +147,6 @@ private: SkSTArray<4, std::unique_ptr<GrFragmentProcessor>> fColorFragmentProcessors; SkSTArray<2, std::unique_ptr<GrFragmentProcessor>> fCoverageFragmentProcessors; bool fDisableOutputConversionToSRGB = false; - bool fAllowSRGBInputs = false; bool fTrivial = true; GrColor4f fColor = GrColor4f::OpaqueWhite(); }; |