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

Unified Diff: src/core/SkImageFilter.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 8 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
« no previous file with comments | « src/core/SkImageCacherator.cpp ('k') | src/core/SkLightingShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageFilter.cpp
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
index abac24cf3fa145044f11f32e307bde1fbfb28a2b..3b8d44d06ebcee77e301dc5bb7054dd614428d3b 100644
--- a/src/core/SkImageFilter.cpp
+++ b/src/core/SkImageFilter.cpp
@@ -331,7 +331,7 @@ bool SkImageFilter::onFilterImage(Proxy*, const SkBitmap&, const Context&,
}
bool SkImageFilter::canFilterImageGPU() const {
- return this->asFragmentProcessor(nullptr, nullptr, SkMatrix::I(), SkIRect());
+ return this->asFragmentProcessor(nullptr, nullptr, SkMatrix::I(), SkIRect(), nullptr);
}
bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context& ctx,
@@ -374,7 +374,8 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont
SkMatrix matrix(ctx.ctm());
matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top()));
GrPaint paint;
- if (this->asFragmentProcessor(&fp, srcTexture, matrix, bounds)) {
+
+ if (this->asFragmentProcessor(&fp, srcTexture, matrix, bounds, dst->asRenderTarget())) {
SkASSERT(fp);
paint.addColorFragmentProcessor(fp)->unref();
@@ -456,7 +457,7 @@ bool SkImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm,
}
bool SkImageFilter::asFragmentProcessor(GrFragmentProcessor**, GrTexture*,
- const SkMatrix&, const SkIRect&) const {
+ const SkMatrix&, const SkIRect&, GrRenderTarget* dst) const {
return false;
}
« no previous file with comments | « src/core/SkImageCacherator.cpp ('k') | src/core/SkLightingShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698