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

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

Issue 1376473002: Move feConvolveMatrix error handling to FEConvolveMatrix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « third_party/WebKit/Source/platform/graphics/filters/FilterEffect.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/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++) {
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/FilterEffect.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698