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

Unified Diff: Source/platform/graphics/filters/ReferenceFilter.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
Index: Source/platform/graphics/filters/ReferenceFilter.h
diff --git a/Source/platform/graphics/filters/ReferenceFilter.h b/Source/platform/graphics/filters/ReferenceFilter.h
index 2345657082330898e3c0683bd2ba77ecd0301cdd..aca69622ec51d0705cb767ee1c39b54b19039579 100644
--- a/Source/platform/graphics/filters/ReferenceFilter.h
+++ b/Source/platform/graphics/filters/ReferenceFilter.h
@@ -33,6 +33,7 @@
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/filters/Filter.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -43,24 +44,26 @@ class FilterEffect;
class PLATFORM_EXPORT ReferenceFilter: public Filter {
public:
- static PassRefPtr<ReferenceFilter> create(float scale)
+ static PassRefPtrWillBeRawPtr<ReferenceFilter> create(float scale)
{
- return adoptRef(new ReferenceFilter(scale));
+ return adoptRefWillBeNoop(new ReferenceFilter(scale));
}
+ virtual ~ReferenceFilter();
+ virtual void trace(Visitor*) override;
+
virtual IntRect sourceImageRect() const override { return IntRect(); };
- void setLastEffect(PassRefPtr<FilterEffect>);
+ void setLastEffect(PassRefPtrWillBeRawPtr<FilterEffect>);
FilterEffect* lastEffect() const { return m_lastEffect.get(); }
SourceGraphic* sourceGraphic() const { return m_sourceGraphic.get(); }
private:
- ReferenceFilter(float scale);
- virtual ~ReferenceFilter();
+ explicit ReferenceFilter(float scale);
- RefPtr<SourceGraphic> m_sourceGraphic;
- RefPtr<FilterEffect> m_lastEffect;
+ RefPtrWillBeMember<SourceGraphic> m_sourceGraphic;
+ RefPtrWillBeMember<FilterEffect> m_lastEffect;
};
} // namespace blink
« no previous file with comments | « Source/platform/graphics/filters/ImageFilterBuilderTest.cpp ('k') | Source/platform/graphics/filters/ReferenceFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698