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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceFilter.h

Issue 992213002: [S.P.] Move filter painting to SVGFilterPainter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename setter too Created 5 years, 9 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 | « Source/core/core.gypi ('k') | Source/core/layout/svg/LayoutSVGResourceFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourceFilter.h
diff --git a/Source/core/layout/svg/LayoutSVGResourceFilter.h b/Source/core/layout/svg/LayoutSVGResourceFilter.h
index 1d475c98c20121273d7a5455981a39d41a9dd7cc..0858acb723ee699373b947f1894dedafea76935e 100644
--- a/Source/core/layout/svg/LayoutSVGResourceFilter.h
+++ b/Source/core/layout/svg/LayoutSVGResourceFilter.h
@@ -84,11 +84,6 @@ public:
virtual void removeAllClientsFromCache(bool markForInvalidation = true) override;
virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) override;
- // Returns the context that should be used to paint the filter contents, or
- // null if the content should not be recorded.
- GraphicsContext* prepareEffect(LayoutObject*, GraphicsContext*);
- void finishEffect(LayoutObject*, GraphicsContext*);
-
FloatRect resourceBoundingBox(const LayoutObject*);
PassRefPtrWillBeRawPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*);
@@ -101,6 +96,9 @@ public:
static const LayoutSVGResourceType s_resourceType = FilterResourceType;
virtual LayoutSVGResourceType resourceType() const override { return s_resourceType; }
+ FilterData* getFilterDataForLayoutObject(LayoutObject* object) { return m_filter.get(object); }
+ void setFilterDataForLayoutObject(LayoutObject* object, PassOwnPtrWillBeRawPtr<FilterData> filterData) { m_filter.set(object, filterData); }
+
private:
typedef WillBePersistentHeapHashMap<LayoutObject*, OwnPtrWillBeMember<FilterData>> FilterMap;
FilterMap m_filter;
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/layout/svg/LayoutSVGResourceFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698