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

Unified Diff: Source/core/layout/svg/LayoutSVGResourcePaintServer.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/LayoutSVGInlineText.h ('k') | Source/core/layout/svg/ReferenceFilterBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourcePaintServer.h
diff --git a/Source/core/layout/svg/LayoutSVGResourcePaintServer.h b/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
index 5825b208805e957301397eea7179b33795fbbde2..28ec9a5dba668ffadf46b91d1a2d58e20afba64d 100644
--- a/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
+++ b/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
@@ -24,6 +24,7 @@
#include "platform/graphics/Color.h"
#include "platform/graphics/Gradient.h"
#include "platform/graphics/Pattern.h"
+#include "wtf/Allocator.h"
class SkPaint;
@@ -39,6 +40,7 @@ class LayoutSVGResourcePaintServer;
class ComputedStyle;
class SVGPaintServer {
+ STACK_ALLOCATED();
public:
explicit SVGPaintServer(Color);
explicit SVGPaintServer(PassRefPtr<Gradient>);
@@ -63,6 +65,7 @@ private:
// If |SVGPaintDescription::hasFallback| is true, |SVGPaintDescription::color| is set to a fallback color.
struct SVGPaintDescription {
+ STACK_ALLOCATED();
SVGPaintDescription() : resource(nullptr), isValid(false), hasFallback(false) { }
SVGPaintDescription(Color color) : resource(nullptr), color(color), isValid(true), hasFallback(false) { }
SVGPaintDescription(LayoutSVGResourcePaintServer* resource) : resource(resource), isValid(true), hasFallback(false) { ASSERT(resource); }
« no previous file with comments | « Source/core/layout/svg/LayoutSVGInlineText.h ('k') | Source/core/layout/svg/ReferenceFilterBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698