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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h

Issue 1497683002: Make platform/graphics to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
index 500cbf82877f36cde9378d715d90c9ce07329933..632fa11d2677a35c0755d2c8991722d5ed772cf4 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
@@ -8,7 +8,9 @@
#include "platform/PlatformExport.h"
#include "platform/graphics/ContiguousContainer.h"
#include "platform/graphics/paint/DisplayItemClient.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
+#include "wtf/Noncopyable.h"
#include "wtf/PassOwnPtr.h"
#ifndef NDEBUG
@@ -24,6 +26,7 @@ class IntRect;
class WebDisplayItemList;
class PLATFORM_EXPORT DisplayItem {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
enum {
// Must be kept in sync with core/paint/PaintPhase.h.
@@ -209,6 +212,7 @@ public:
// Ids are for matching new DisplayItems with existing DisplayItems.
struct Id {
+ STACK_ALLOCATED();
Id(const DisplayItemClient client, const Type type, const unsigned scope)
: client(client)
, type(type)

Powered by Google App Engine
This is Rietveld 408576698