diff options
Diffstat (limited to 'experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp')
-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)); } |