diff options
author | brianosman <brianosman@google.com> | 2016-07-25 05:12:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-25 05:12:53 -0700 |
commit | 1638c0deea80e4a580fe43babeb04279dd163e98 (patch) | |
tree | 3397b189513a586c7187434a6edc113a78037059 /include | |
parent | b560b5c8c03fe1b9b1b8a90c546481b8db7f043e (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkShader.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; }; |