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

Unified Diff: Source/core/platform/graphics/filters/FilterOperation.h

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/FilterOperation.h
diff --git a/Source/core/platform/graphics/filters/FilterOperation.h b/Source/core/platform/graphics/filters/FilterOperation.h
index 99329e693dc5a8a24b5bfe09bc11888b8282dd0d..bcc7cfc95423df3a290e7413429d39c03614b2f6 100644
--- a/Source/core/platform/graphics/filters/FilterOperation.h
+++ b/Source/core/platform/graphics/filters/FilterOperation.h
@@ -30,6 +30,7 @@
#include "core/platform/graphics/Color.h"
#include "core/platform/graphics/LayoutSize.h"
#include "core/platform/graphics/filters/FilterEffect.h"
+#include "core/platform/graphics/filters/ReferenceFilter.h"
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
#include <wtf/RefCounted.h>
@@ -166,8 +167,8 @@ public:
void setCachedSVGDocumentReference(PassOwnPtr<CachedSVGDocumentReference> cachedSVGDocumentReference) { m_cachedSVGDocumentReference = cachedSVGDocumentReference; }
#endif
- FilterEffect* filterEffect() const { return m_filterEffect.get(); }
- void setFilterEffect(PassRefPtr<FilterEffect> filterEffect) { m_filterEffect = filterEffect; }
+ ReferenceFilter* filter() const { return m_filter.get(); }
+ void setFilter(PassRefPtr<ReferenceFilter> filter) { m_filter = filter; }
private:
@@ -191,7 +192,7 @@ private:
#if ENABLE(SVG)
OwnPtr<CachedSVGDocumentReference> m_cachedSVGDocumentReference;
#endif
- RefPtr<FilterEffect> m_filterEffect;
+ RefPtr<ReferenceFilter> m_filter;
};
// GRAYSCALE, SEPIA, SATURATE and HUE_ROTATE are variations on a basic color matrix effect.
« no previous file with comments | « Source/core/platform/graphics/filters/FilterEffect.cpp ('k') | Source/core/platform/graphics/filters/ReferenceFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698