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

Unified Diff: Source/core/paint/ImagePainter.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/ImagePainter.h
diff --git a/Source/core/paint/ImagePainter.h b/Source/core/paint/ImagePainter.h
index 8fabf2742b7681897985e017de529f7481ed0dcf..3455a2f456469da31531e84d78de65bed87e6abc 100644
--- a/Source/core/paint/ImagePainter.h
+++ b/Source/core/paint/ImagePainter.h
@@ -5,6 +5,8 @@
#ifndef ImagePainter_h
#define ImagePainter_h
+#include "wtf/Allocator.h"
+
namespace blink {
class GraphicsContext;
@@ -14,6 +16,7 @@ class LayoutRect;
class LayoutImage;
class ImagePainter {
+ STACK_ALLOCATED();
public:
ImagePainter(LayoutImage& layoutImage) : m_layoutImage(layoutImage) { }

Powered by Google App Engine
This is Rietveld 408576698