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

Unified Diff: Source/core/paint/ClipScope.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/ClipScope.h
diff --git a/Source/core/paint/ClipScope.h b/Source/core/paint/ClipScope.h
index 38896b510faf54861d49a7101c44597da0e6cd45..71df08677b2f26b5a63092bbd4ae35f2e1917021 100644
--- a/Source/core/paint/ClipScope.h
+++ b/Source/core/paint/ClipScope.h
@@ -6,10 +6,13 @@
#define ClipScope_h
#include "platform/graphics/GraphicsContext.h"
+#include "wtf/Allocator.h"
namespace blink {
class ClipScope {
+ ALLOW_ONLY_INLINE_ALLOCATION();
+ WTF_MAKE_NONCOPYABLE(ClipScope);
public:
ClipScope(GraphicsContext* context)
: m_context(context)
@@ -21,7 +24,6 @@ public:
private:
GraphicsContext* m_context;
int m_clipCount;
- WTF_MAKE_NONCOPYABLE(ClipScope);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698