Index: third_party/WebKit/Source/platform/graphics/filters/FilterEffect.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FilterEffect.cpp b/third_party/WebKit/Source/platform/graphics/filters/FilterEffect.cpp |
index 16977f23ce9c51807e0416f828fe081996135a08..7e8987bff31f2127e214b4a4c52e805c1ddcc8b4 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/FilterEffect.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/FilterEffect.cpp |
@@ -22,10 +22,10 @@ |
*/ |
#include "config.h" |
- |
#include "platform/graphics/filters/FilterEffect.h" |
#include "platform/graphics/filters/Filter.h" |
+#include "third_party/skia/include/effects/SkPictureImageFilter.h" |
namespace blink { |
@@ -190,6 +190,11 @@ PassRefPtr<SkImageFilter> FilterEffect::createImageFilterWithoutValidation(SkiaI |
return createImageFilter(builder); |
} |
+PassRefPtr<SkImageFilter> FilterEffect::createTransparentBlack() const |
+{ |
+ return adoptRef(SkPictureImageFilter::Create(nullptr, filterPrimitiveSubregion())); |
+} |
+ |
bool FilterEffect::hasConnectedInput() const |
{ |
for (unsigned i = 0; i < m_inputEffects.size(); i++) { |