diff options
author | Brian Osman <brianosman@google.com> | 2016-10-03 15:24:44 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-10-03 20:23:07 +0000 |
commit | 0d9dfe981e2a620bd867efbad195856937657a4b (patch) | |
tree | b9d5eb6ac65275bf31216fdcffc72ac0b36bc975 /experimental | |
parent | 70cdb396eb5ffbbed128b902532e9292b5ec0e9d (diff) |
Supply random dst color space to asFP in unit tests
TBR=bsalomon@google.com (Testing-only API change)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2876
Change-Id: I0ca26da0307848cdfc8ffaac2d042601663ab00b
Reviewed-on: https://skia-review.googlesource.com/2876
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'experimental')
-rw-r--r-- | experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp b/experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp index 2c2f65e58f..b863b2a548 100644 --- a/experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp +++ b/experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp @@ -729,8 +729,9 @@ sk_sp<GrFragmentProcessor> GrPerlinNoise2Effect::TestCreate(GrProcessorTestData* GrPaint grPaint; SkMatrix viewMatrix = GrTest::TestMatrix(d->fRandom); + auto colorSpace = GrTest::TestColorSpace(d->fRandom); return shader->asFragmentProcessor(SkShader::AsFPArgs(d->fContext, &viewMatrix, nullptr, - kNone_SkFilterQuality, nullptr, + kNone_SkFilterQuality, colorSpace.get(), SkSourceGammaTreatment::kRespect)); } @@ -1137,8 +1138,9 @@ sk_sp<GrFragmentProcessor> GrImprovedPerlinNoiseEffect::TestCreate(GrProcessorTe GrPaint grPaint; SkMatrix viewMatrix = GrTest::TestMatrix(d->fRandom); + auto colorSpace = GrTest::TestColorSpace(d->fRandom); return shader->asFragmentProcessor(SkShader::AsFPArgs(d->fContext, &viewMatrix, nullptr, - kNone_SkFilterQuality, nullptr, + kNone_SkFilterQuality, colorSpace.get(), SkSourceGammaTreatment::kRespect)); } |