diff options
author | Brian Osman <brianosman@google.com> | 2017-10-18 13:15:13 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-18 18:46:25 +0000 |
commit | 2240be96d97b5ac0886381d74a21f1e2a0928f55 (patch) | |
tree | e0148f28dd2eb10bbfd3541213e4720b10b043b0 /tests | |
parent | 8fed655df87618f8460af2a6284bdef764cf84c8 (diff) |
Remove color space xform from GrTextureDomain & GrSimpleTextureEffect
Bug: skia:
Change-Id: I31435d334da28cce9bbc654c4b98746b03078897
Reviewed-on: https://skia-review.googlesource.com/61460
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/IntTextureTest.cpp | 2 | ||||
-rw-r--r-- | tests/OnFlushCallbackTest.cpp | 4 | ||||
-rw-r--r-- | tests/ProcessorTest.cpp | 2 | ||||
-rw-r--r-- | tests/RectangleTextureTest.cpp | 2 | ||||
-rw-r--r-- | tests/SRGBMipMapTest.cpp | 3 |
5 files changed, 6 insertions, 7 deletions
diff --git a/tests/IntTextureTest.cpp b/tests/IntTextureTest.cpp index 3baded97cb..5aedcfdf78 100644 --- a/tests/IntTextureTest.cpp +++ b/tests/IntTextureTest.cpp @@ -256,7 +256,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(IntTexture, reporter, ctxInfo) { {GrSamplerState::Filter::kMipMap, "filter-mipmap"}}; for (auto filter : kNamedFilters) { - auto fp = GrSimpleTextureEffect::Make(sContext->asTextureProxyRef(), nullptr, SkMatrix::I(), + auto fp = GrSimpleTextureEffect::Make(sContext->asTextureProxyRef(), SkMatrix::I(), filter.fMode); REPORTER_ASSERT(reporter, fp); if (!fp) { diff --git a/tests/OnFlushCallbackTest.cpp b/tests/OnFlushCallbackTest.cpp index 09a7e7628a..82821f3ce9 100644 --- a/tests/OnFlushCallbackTest.cpp +++ b/tests/OnFlushCallbackTest.cpp @@ -416,7 +416,7 @@ static sk_sp<GrTextureProxy> make_upstream_image(GrContext* context, AtlasObject // TODO: here is the blocker for deferring creation of the atlas. The TextureSamplers // created here currently require a hard GrTexture. - auto fp = GrSimpleTextureEffect::Make(fakeAtlas, nullptr, SkMatrix::I()); + auto fp = GrSimpleTextureEffect::Make(fakeAtlas, SkMatrix::I()); GrPaint paint; paint.addColorFragmentProcessor(std::move(fp)); paint.setPorterDuffXPFactory(SkBlendMode::kSrc); @@ -551,7 +551,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(OnFlushCallbackTest, reporter, ctxInfo) { SkMatrix t = SkMatrix::MakeTrans(-i*3*kDrawnTileSize, 0); GrPaint paint; - auto fp = GrSimpleTextureEffect::Make(std::move(proxies[i]), nullptr, t); + auto fp = GrSimpleTextureEffect::Make(std::move(proxies[i]), t); paint.setPorterDuffXPFactory(SkBlendMode::kSrc); paint.addColorFragmentProcessor(std::move(fp)); diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp index ba90dc2ca6..9acf185b9b 100644 --- a/tests/ProcessorTest.cpp +++ b/tests/ProcessorTest.cpp @@ -329,7 +329,7 @@ static GrColor4f input_texel_color4f(int i, int j) { void test_draw_op(GrRenderTargetContext* rtc, std::unique_ptr<GrFragmentProcessor> fp, sk_sp<GrTextureProxy> inputDataProxy) { GrPaint paint; - paint.addColorTextureProcessor(std::move(inputDataProxy), nullptr, SkMatrix::I()); + paint.addColorTextureProcessor(std::move(inputDataProxy), SkMatrix::I()); paint.addColorFragmentProcessor(std::move(fp)); paint.setPorterDuffXPFactory(SkBlendMode::kSrc); diff --git a/tests/RectangleTextureTest.cpp b/tests/RectangleTextureTest.cpp index 25a8b932e7..d3a7221708 100644 --- a/tests/RectangleTextureTest.cpp +++ b/tests/RectangleTextureTest.cpp @@ -29,7 +29,7 @@ static void test_basic_draw_as_src(skiatest::Reporter* reporter, GrContext* cont GrSamplerState::Filter::kBilerp, GrSamplerState::Filter::kMipMap}) { rtContext->clear(nullptr, 0xDDCCBBAA, true); - auto fp = GrSimpleTextureEffect::Make(rectProxy, nullptr, SkMatrix::I(), filter); + auto fp = GrSimpleTextureEffect::Make(rectProxy, SkMatrix::I(), filter); GrPaint paint; paint.setPorterDuffXPFactory(SkBlendMode::kSrc); paint.addColorFragmentProcessor(std::move(fp)); diff --git a/tests/SRGBMipMapTest.cpp b/tests/SRGBMipMapTest.cpp index e10c24885b..857ca58f7c 100644 --- a/tests/SRGBMipMapTest.cpp +++ b/tests/SRGBMipMapTest.cpp @@ -147,8 +147,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SRGBMipMaps, reporter, ctxInfo) { paint.setPorterDuffXPFactory(SkBlendMode::kSrc); GrSamplerState mipMapSamplerState(GrSamplerState::WrapMode::kRepeat, GrSamplerState::Filter::kMipMap); - paint.addColorTextureProcessor(std::move(proxy), nullptr, SkMatrix::MakeScale(rtS), - mipMapSamplerState); + paint.addColorTextureProcessor(std::move(proxy), SkMatrix::MakeScale(rtS), mipMapSamplerState); // 1) Draw texture to S32 surface (should generate/use sRGB mips) paint.setGammaCorrect(true); |