diff options
author | joshualitt <joshualitt@chromium.org> | 2015-02-25 13:19:48 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-25 13:19:48 -0800 |
commit | 570d2f81a65fc868d6300a7edf34c0d5d048c5d6 (patch) | |
tree | 1e0801033607b4245ab407d05fb42dc07e037fb0 /src/gpu/effects | |
parent | 2907059d0eb1972a300ea1bf0cd4e4febabb9784 (diff) |
I'd really like to land this before the branch so speedy reviews are appreciated.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/586d5d640b19860dfbbd903a5188da1bbbe87336
Review URL: https://codereview.chromium.org/936943002
Diffstat (limited to 'src/gpu/effects')
-rw-r--r-- | src/gpu/effects/GrConfigConversionEffect.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp index 46dde19646..fedc4707bc 100644 --- a/src/gpu/effects/GrConfigConversionEffect.cpp +++ b/src/gpu/effects/GrConfigConversionEffect.cpp @@ -205,8 +205,6 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context {kDivByAlpha_RoundUp_PMConversion, kMulByAlpha_RoundDown_PMConversion}, }; - GrContext::AutoWideOpenIdentityDraw awoid(context); - bool failed = true; for (size_t i = 0; i < SK_ARRAY_COUNT(kConversionRules) && failed; ++i) { @@ -231,19 +229,31 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context GrPaint paint1; paint1.addColorProcessor(pmToUPM1); - context->drawNonAARectToRect(readTex->asRenderTarget(), paint1, SkMatrix::I(), kDstRect, + context->drawNonAARectToRect(readTex->asRenderTarget(), + GrClip::WideOpen(), + paint1, + SkMatrix::I(), + kDstRect, kSrcRect); readTex->readPixels(0, 0, 256, 256, kRGBA_8888_GrPixelConfig, firstRead); GrPaint paint2; paint2.addColorProcessor(upmToPM); - context->drawNonAARectToRect(tempTex->asRenderTarget(), paint2, SkMatrix::I(), kDstRect, + context->drawNonAARectToRect(tempTex->asRenderTarget(), + GrClip::WideOpen(), + paint2, + SkMatrix::I(), + kDstRect, kSrcRect); GrPaint paint3; paint3.addColorProcessor(pmToUPM2); - context->drawNonAARectToRect(readTex->asRenderTarget(), paint3, SkMatrix::I(), kDstRect, + context->drawNonAARectToRect(readTex->asRenderTarget(), + GrClip::WideOpen(), + paint3, + SkMatrix::I(), + kDstRect, kSrcRect); readTex->readPixels(0, 0, 256, 256, kRGBA_8888_GrPixelConfig, secondRead); |