Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(834)

Unified Diff: src/effects/SkAlphaThresholdFilter.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/effects/SkAlphaThresholdFilter.cpp
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
index 82f6ea43bb9ae431090f3b81d6b0a92cc6637e38..c838d5af45a37903bfcacd3ebaf32e543e0bc8ad 100644
--- a/src/effects/SkAlphaThresholdFilter.cpp
+++ b/src/effects/SkAlphaThresholdFilter.cpp
@@ -287,7 +287,7 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp,
return false;
}
- GrDrawContext* drawContext = context->drawContext();
+ GrDrawContext* drawContext = context->drawContext(maskTexture->asRenderTarget());
if (drawContext) {
GrPaint grPaint;
grPaint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode);
@@ -302,6 +302,8 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp,
}
}
+ // TODO: whoever uses the resulting 'fp' needs to "use" the correct
+ // drawContext
*fp = AlphaThresholdEffect::Create(texture,
maskTexture,
fInnerThreshold,

Powered by Google App Engine
This is Rietveld 408576698