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

Unified Diff: Source/platform/graphics/filters/FETurbulence.cpp

Issue 333783002: Fix tiled (stitched) FETurbulence. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update to ToT Created 6 years, 6 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 | « Source/platform/graphics/filters/FETurbulence.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FETurbulence.cpp
diff --git a/Source/platform/graphics/filters/FETurbulence.cpp b/Source/platform/graphics/filters/FETurbulence.cpp
index e79a7c9ed088489d36eae6b142258db8906c762d..cb123da3e2b0170a09e163dbe32e996152bc0174 100644
--- a/Source/platform/graphics/filters/FETurbulence.cpp
+++ b/Source/platform/graphics/filters/FETurbulence.cpp
@@ -401,9 +401,9 @@ void FETurbulence::applySoftware()
fillRegion(pixelArray, paintingData, 0, absolutePaintRect().height(), m_baseFrequencyX, m_baseFrequencyY);
}
-SkShader* FETurbulence::createShader(const IntRect& filterRegion)
+SkShader* FETurbulence::createShader()
{
- const SkISize size = SkISize::Make(filterRegion.width(), filterRegion.height());
+ const SkISize size = SkISize::Make(effectBoundaries().width(), effectBoundaries().height());
// Frequency should be scaled by page zoom, but not by primitiveUnits.
// So we apply only the transform scale (as Filter::apply*Scale() do)
// and not the target bounding box scale (as SVGFilter::apply*Scale()
@@ -423,7 +423,7 @@ SkShader* FETurbulence::createShader(const IntRect& filterRegion)
PassRefPtr<SkImageFilter> FETurbulence::createImageFilter(SkiaImageFilterBuilder* builder)
{
- SkAutoTUnref<SkShader> shader(createShader(IntRect()));
+ SkAutoTUnref<SkShader> shader(createShader());
SkImageFilter::CropRect rect = getCropRect(builder->cropOffset());
return adoptRef(SkRectShaderImageFilter::Create(shader, &rect));
}
« no previous file with comments | « Source/platform/graphics/filters/FETurbulence.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698