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

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

Issue 644713004: Further cleanup in FilterEffectRenderer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove inverseScale() per review. Remove useless #includes. Created 6 years, 2 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/core/svg/graphics/filters/SVGFilter.cpp ('k') | Source/platform/graphics/filters/Filter.h » ('j') | 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 b1e12ac23097525531f6847426fe2db1526cff6b..24d0c0c7988f131a813d0954830bf966fc8d5c0c 100644
--- a/Source/platform/graphics/filters/FETurbulence.cpp
+++ b/Source/platform/graphics/filters/FETurbulence.cpp
@@ -137,9 +137,8 @@ SkShader* FETurbulence::createShader()
// and not the target bounding box scale (as SVGFilter::apply*Scale()
// would do). Note also that we divide by the scale since this is
// a frequency, not a period.
- const AffineTransform& absoluteTransform = filter()->absoluteTransform();
- float baseFrequencyX = m_baseFrequencyX / absoluteTransform.a();
- float baseFrequencyY = m_baseFrequencyY / absoluteTransform.d();
+ float baseFrequencyX = m_baseFrequencyX / filter()->scale();
+ float baseFrequencyY = m_baseFrequencyY / filter()->scale();
return (type() == FETURBULENCE_TYPE_FRACTALNOISE) ?
SkPerlinNoiseShader::CreateFractalNoise(SkFloatToScalar(baseFrequencyX),
SkFloatToScalar(baseFrequencyY), numOctaves(), SkFloatToScalar(seed()),
« no previous file with comments | « Source/core/svg/graphics/filters/SVGFilter.cpp ('k') | Source/platform/graphics/filters/Filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698