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

Unified Diff: Source/core/platform/graphics/filters/ReferenceFilter.cpp

Issue 13984002: Extracting the SVG Filter Reference implementation out of the FilterEffectRenderer into its own typ… Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Updated to ToT, fixed style, warnings Created 7 years, 7 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
Index: Source/core/platform/graphics/filters/ReferenceFilter.cpp
diff --git a/Source/core/rendering/style/StyleCustomFilterProgram.cpp b/Source/core/platform/graphics/filters/ReferenceFilter.cpp
similarity index 74%
copy from Source/core/rendering/style/StyleCustomFilterProgram.cpp
copy to Source/core/platform/graphics/filters/ReferenceFilter.cpp
index 31c3d64d662ce7da9ff0582f323a1c6c79d0fe36..dd35f6a4e86681b957dce7ed91ecbb98dc800ed5 100644
--- a/Source/core/rendering/style/StyleCustomFilterProgram.cpp
+++ b/Source/core/platform/graphics/filters/ReferenceFilter.cpp
@@ -29,18 +29,27 @@
#include "config.h"
-#include "core/rendering/style/StyleCustomFilterProgram.h"
+#include "core/platform/graphics/filters/ReferenceFilter.h"
-#include "core/rendering/style/StyleCustomFilterProgramCache.h"
+#include "core/platform/graphics/filters/FilterEffect.h"
+#include "core/platform/graphics/filters/FilterOperation.h"
+#include "core/platform/graphics/filters/SourceGraphic.h"
namespace WebCore {
-StyleCustomFilterProgram::~StyleCustomFilterProgram()
+ReferenceFilter::ReferenceFilter()
+ : Filter(AffineTransform())
+ , m_sourceGraphic(SourceGraphic::create(this))
{
- if (m_cache)
- m_cache->remove(this);
}
-} // namespace WebCore
+void ReferenceFilter::setLastEffect(PassRefPtr<FilterEffect> effect)
+{
+ m_lastEffect = effect;
+}
+ReferenceFilter::~ReferenceFilter()
+{
+}
+} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698