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

Unified Diff: Source/core/paint/TextPainter.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/TextPainter.h
diff --git a/Source/core/paint/TextPainter.h b/Source/core/paint/TextPainter.h
index 56f080b7aa64a06fa0fcd94269123ea35b78980d..7adaa1d1de39b2df853651dd8ab9aec39c23a030 100644
--- a/Source/core/paint/TextPainter.h
+++ b/Source/core/paint/TextPainter.h
@@ -13,6 +13,7 @@
#include "platform/geometry/LayoutRect.h"
#include "platform/graphics/Color.h"
#include "platform/transforms/AffineTransform.h"
+#include "wtf/Allocator.h"
#include "wtf/text/AtomicString.h"
namespace blink {
@@ -29,6 +30,7 @@ class TextRun;
struct TextRunPaintInfo;
class CORE_EXPORT TextPainter {
+ STACK_ALLOCATED();
public:
struct Style;
@@ -43,6 +45,7 @@ public:
void paint(int startOffset, int endOffset, int length, const Style&, TextBlobPtr* cachedTextBlob = 0);
struct Style {
+ STACK_ALLOCATED();
Color currentColor;
Color fillColor;
Color strokeColor;

Powered by Google App Engine
This is Rietveld 408576698