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

Unified Diff: third_party/WebKit/Source/platform/graphics/FrameData.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/FrameData.h
diff --git a/third_party/WebKit/Source/platform/graphics/FrameData.h b/third_party/WebKit/Source/platform/graphics/FrameData.h
index 672801bce4b34465a7eef8e6e2e629599904b8de..e64c9318bd54efa3417f2bfbbe91dfd52d9bc8f2 100644
--- a/third_party/WebKit/Source/platform/graphics/FrameData.h
+++ b/third_party/WebKit/Source/platform/graphics/FrameData.h
@@ -30,6 +30,7 @@
#include "platform/graphics/ImageOrientation.h"
#include "third_party/skia/include/core/SkImage.h"
+#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/RefPtr.h"
#include "wtf/VectorTraits.h"
@@ -37,6 +38,7 @@
namespace blink {
struct FrameData {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
WTF_MAKE_NONCOPYABLE(FrameData);
public:
FrameData();
@@ -59,6 +61,7 @@ public:
namespace WTF {
template<> struct VectorTraits<blink::FrameData> : public SimpleClassVectorTraits<blink::FrameData> {
+ STATIC_ONLY(VectorTraits);
static const bool canInitializeWithMemset = false; // Not all FrameData members initialize to 0.
};
}

Powered by Google App Engine
This is Rietveld 408576698