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

Unified Diff: Source/core/layout/svg/SVGMarkerData.h

Issue 1318713003: Make classes and structures in core/layout 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
« no previous file with comments | « Source/core/layout/svg/SVGLayoutSupport.h ('k') | Source/core/layout/svg/SVGResourcesCycleSolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGMarkerData.h
diff --git a/Source/core/layout/svg/SVGMarkerData.h b/Source/core/layout/svg/SVGMarkerData.h
index 2985a4433f05503e3d5ce024f755b291e86e53b9..1929b6c997edf6f9eb17481984bf34c4d5e57c46 100644
--- a/Source/core/layout/svg/SVGMarkerData.h
+++ b/Source/core/layout/svg/SVGMarkerData.h
@@ -22,6 +22,7 @@
#include "platform/FloatConversion.h"
#include "platform/graphics/Path.h"
+#include "wtf/Allocator.h"
#include "wtf/MathExtras.h"
namespace blink {
@@ -33,6 +34,7 @@ enum SVGMarkerType {
};
struct MarkerPosition {
+ ALLOW_ONLY_INLINE_ALLOCATION();
MarkerPosition(SVGMarkerType useType, const FloatPoint& useOrigin, float useAngle)
: type(useType)
, origin(useOrigin)
@@ -48,6 +50,7 @@ struct MarkerPosition {
class LayoutSVGResourceMarker;
class SVGMarkerData {
+ STACK_ALLOCATED();
public:
SVGMarkerData(Vector<MarkerPosition>& positions, bool autoStartReverse)
: m_positions(positions)
« no previous file with comments | « Source/core/layout/svg/SVGLayoutSupport.h ('k') | Source/core/layout/svg/SVGResourcesCycleSolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698