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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FETile.cpp

Issue 1569983004: Image filters: fix srcRect computation for FETile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a #define to suppress the Skia optimization Created 4 years, 11 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 | « skia/config/SkUserConfig.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/filters/FETile.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FETile.cpp b/third_party/WebKit/Source/platform/graphics/filters/FETile.cpp
index 8de356e04ee72653f4c86ea8e8b2e09f69018a8d..f42ffe95fe678c28391023427663e69e0a3fc82b 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FETile.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FETile.cpp
@@ -46,7 +46,7 @@ FloatRect FETile::mapPaintRect(const FloatRect& rect, bool forward)
PassRefPtr<SkImageFilter> FETile::createImageFilter(SkiaImageFilterBuilder& builder)
{
RefPtr<SkImageFilter> input(builder.build(inputEffect(0), operatingColorSpace()));
- FloatRect srcRect = inputEffect(0)->applyEffectBoundaries(filter()->filterRegion());
+ FloatRect srcRect = inputEffect(0)->filterPrimitiveSubregion();
FloatRect dstRect = applyEffectBoundaries(filter()->filterRegion());
return adoptRef(SkTileImageFilter::Create(srcRect, dstRect, input.get()));
}
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698