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 /experimental/SkPerlinNoiseShader2 | |
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 'experimental/SkPerlinNoiseShader2')
-rw-r--r-- | experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp b/experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp index ac344924a3..cfea408731 100644 --- a/experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp +++ b/experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp @@ -730,7 +730,7 @@ sk_sp<GrFragmentProcessor> GrPerlinNoise2Effect::TestCreate(GrProcessorTestData* GrPaint grPaint; SkMatrix viewMatrix = GrTest::TestMatrix(d->fRandom); return shader->asFragmentProcessor(SkShader::AsFPArgs(d->fContext, &viewMatrix, nullptr, - kNone_SkFilterQuality, + kNone_SkFilterQuality, nullptr, SkSourceGammaTreatment::kRespect)); } @@ -1138,7 +1138,7 @@ sk_sp<GrFragmentProcessor> GrImprovedPerlinNoiseEffect::TestCreate(GrProcessorTe GrPaint grPaint; SkMatrix viewMatrix = GrTest::TestMatrix(d->fRandom); return shader->asFragmentProcessor(SkShader::AsFPArgs(d->fContext, &viewMatrix, nullptr, - kNone_SkFilterQuality, + kNone_SkFilterQuality, nullptr, SkSourceGammaTreatment::kRespect)); } |