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

Unified Diff: Source/core/paint/NinePieceImageGrid.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/NinePieceImageGrid.h
diff --git a/Source/core/paint/NinePieceImageGrid.h b/Source/core/paint/NinePieceImageGrid.h
index f96c190a10b56567313572f7cb81e86d14b8fd4e..7635484f4aa0e1b4470f547cfdca76a677265b3e 100644
--- a/Source/core/paint/NinePieceImageGrid.h
+++ b/Source/core/paint/NinePieceImageGrid.h
@@ -66,6 +66,7 @@ public:
const IntRectOutsets& borderWidths);
struct CORE_EXPORT NinePieceDrawInfo {
+ STACK_ALLOCATED();
bool isDrawable;
bool isCornerPiece;
FloatRect destination;
@@ -81,6 +82,7 @@ public:
NinePieceDrawInfo getNinePieceDrawInfo(NinePiece) const;
struct Edge {
+ DISALLOW_ALLOCATION();
bool isDrawable() const { return slice > 0 && width > 0; }
float scale() const { return isDrawable() ? (float)width / slice : 1; }
int slice;

Powered by Google App Engine
This is Rietveld 408576698