From 1638c0deea80e4a580fe43babeb04279dd163e98 Mon Sep 17 00:00:00 2001 From: brianosman Date: Mon, 25 Jul 2016 05:12:53 -0700 Subject: Add destination color space to AsFPArgs. Eliminates last XFORMTODO. This is going to be needed in many more places as I finish connecting the dots. Even better - I'd like to switch to a world where SkColorSpace != nullptr is the only signal we use for gamma-correct rendering, so I can eliminate SkSourceGammaTreatment and SkSurfaceProps::isGammaCorrect. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2180503002 Review-Url: https://codereview.chromium.org/2180503002 --- include/core/SkShader.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/core/SkShader.h b/include/core/SkShader.h index 5301f46a0a..69037d95f6 100644 --- a/include/core/SkShader.h +++ b/include/core/SkShader.h @@ -316,17 +316,20 @@ public: const SkMatrix* viewMatrix, const SkMatrix* localMatrix, SkFilterQuality filterQuality, + SkColorSpace* dstColorSpace, SkSourceGammaTreatment gammaTreatment) : fContext(context) , fViewMatrix(viewMatrix) , fLocalMatrix(localMatrix) , fFilterQuality(filterQuality) + , fDstColorSpace(dstColorSpace) , fGammaTreatment(gammaTreatment) {} GrContext* fContext; const SkMatrix* fViewMatrix; const SkMatrix* fLocalMatrix; SkFilterQuality fFilterQuality; + SkColorSpace* fDstColorSpace; SkSourceGammaTreatment fGammaTreatment; }; -- cgit v1.2.3