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

Unified Diff: Source/core/paint/SVGFilterPainter.h

Issue 1319893002: Make classes and structures in core/paint fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/paint/SVGFilterPainter.h
diff --git a/Source/core/paint/SVGFilterPainter.h b/Source/core/paint/SVGFilterPainter.h
index 94a968e5975f74410b6fa9fd414e5a3dbc0a1bbc..26a0a330d55984a626b40b528074d26a10b39d49 100644
--- a/Source/core/paint/SVGFilterPainter.h
+++ b/Source/core/paint/SVGFilterPainter.h
@@ -7,6 +7,7 @@
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/paint/DisplayItemList.h"
+#include "wtf/Allocator.h"
#include "wtf/OwnPtr.h"
namespace blink {
@@ -16,6 +17,8 @@ class LayoutObject;
class LayoutSVGResourceFilter;
class SVGFilterRecordingContext {
+ WTF_MAKE_FAST_ALLOCATED(SVGFilterRecordingContext);
+ WTF_MAKE_NONCOPYABLE(SVGFilterRecordingContext);
public:
explicit SVGFilterRecordingContext(GraphicsContext* initialContext) : m_initialContext(initialContext) { }
@@ -31,6 +34,7 @@ private:
};
class SVGFilterPainter {
+ STACK_ALLOCATED();
public:
SVGFilterPainter(LayoutSVGResourceFilter& filter) : m_filter(filter) { }

Powered by Google App Engine
This is Rietveld 408576698