Index: third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp b/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp |
index 64644165294bd4fb894f1838683e6ef208f590e1..1781eb0b2094a57e2716fa7d3f855977d8a66fe4 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp |
@@ -149,6 +149,9 @@ SkShader* FETurbulence::createShader() |
PassRefPtr<SkImageFilter> FETurbulence::createImageFilter(SkiaImageFilterBuilder* builder) |
{ |
+ if (m_baseFrequencyX < 0 || m_baseFrequencyY < 0) |
+ return createTransparentBlack(builder); |
+ |
SkAutoTUnref<SkShader> shader(createShader()); |
SkImageFilter::CropRect rect = getCropRect(builder->cropOffset()); |
return adoptRef(SkRectShaderImageFilter::Create(shader, &rect)); |