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

Unified Diff: Source/platform/graphics/filters/Filter.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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/platform/graphics/filters/FETurbulence.cpp ('k') | Source/platform/graphics/filters/FilterEffect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/Filter.h
diff --git a/Source/platform/graphics/filters/Filter.h b/Source/platform/graphics/filters/Filter.h
index a8490eacb3b5884dd53dfb2bedd45c86b7323d09..b448733774117de4d42142c4156eb6b851f2cfd2 100644
--- a/Source/platform/graphics/filters/Filter.h
+++ b/Source/platform/graphics/filters/Filter.h
@@ -25,15 +25,15 @@
#include "platform/geometry/FloatPoint3D.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntRect.h"
+#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
namespace blink {
-class PLATFORM_EXPORT Filter : public RefCounted<Filter> {
+class PLATFORM_EXPORT Filter : public RefCountedWillBeGarbageCollectedFinalized<Filter> {
public:
- Filter(float scale)
- : m_scale(scale) { }
virtual ~Filter() { }
+ virtual void trace(Visitor*) { }
float scale() const { return m_scale; }
FloatRect mapLocalRectToAbsoluteRect(const FloatRect& rect) const { FloatRect result(rect); result.scale(m_scale); return result; }
@@ -55,6 +55,12 @@ public:
m_absoluteFilterRegion.scale(m_scale);
}
+protected:
+ explicit Filter(float scale)
+ : m_scale(scale)
+ {
+ }
+
private:
float m_scale;
FloatRect m_absoluteFilterRegion;
« no previous file with comments | « Source/platform/graphics/filters/FETurbulence.cpp ('k') | Source/platform/graphics/filters/FilterEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698