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

Unified Diff: Source/core/paint/DeprecatedPaintLayer.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/DeprecatedPaintLayer.h
diff --git a/Source/core/paint/DeprecatedPaintLayer.h b/Source/core/paint/DeprecatedPaintLayer.h
index a82ca8e54b1c2b9a1d2b03b8c2d918b890d01b34..8dc2b5f4797fb24bfbd1d4ba445f6c5bdfd1fa5d 100644
--- a/Source/core/paint/DeprecatedPaintLayer.h
+++ b/Source/core/paint/DeprecatedPaintLayer.h
@@ -56,6 +56,7 @@
#include "core/paint/DeprecatedPaintLayerStackingNodeIterator.h"
#include "platform/graphics/CompositingReasons.h"
#include "public/platform/WebBlendMode.h"
+#include "wtf/Allocator.h"
#include "wtf/OwnPtr.h"
namespace blink {
@@ -79,6 +80,7 @@ enum CompositingQueryMode {
// FIXME: remove this once the compositing query ASSERTS are no longer hit.
class CORE_EXPORT DisableCompositingQueryAsserts {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(DisableCompositingQueryAsserts);
public:
DisableCompositingQueryAsserts();
@@ -405,6 +407,7 @@ public:
bool hasStyleDeterminedDirectCompositingReasons() const { return m_potentialCompositingReasonsFromStyle & CompositingReasonComboAllDirectStyleDeterminedReasons; }
class AncestorDependentCompositingInputs {
+ DISALLOW_ALLOCATION();
public:
AncestorDependentCompositingInputs()
: opacityAncestor(0)
@@ -445,6 +448,7 @@ public:
};
class DescendantDependentCompositingInputs {
+ DISALLOW_ALLOCATION();
public:
DescendantDependentCompositingInputs()
: hasDescendantWithClipPath(false)

Powered by Google App Engine
This is Rietveld 408576698