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

Unified Diff: third_party/WebKit/Source/platform/graphics/Color.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/Color.h
diff --git a/third_party/WebKit/Source/platform/graphics/Color.h b/third_party/WebKit/Source/platform/graphics/Color.h
index 694da5faa4143c0bb61942a28b54e1003b0cbade..681000ace876648888670752e0a358e47ee66b09 100644
--- a/third_party/WebKit/Source/platform/graphics/Color.h
+++ b/third_party/WebKit/Source/platform/graphics/Color.h
@@ -52,6 +52,7 @@ inline int blueChannel(RGBA32 color) { return color & 0xFF; }
inline int alphaChannel(RGBA32 color) { return (color >> 24) & 0xFF; }
struct NamedColor {
+ DISALLOW_NEW();
const char* name;
unsigned ARGBValue;
};
@@ -59,7 +60,7 @@ struct NamedColor {
PLATFORM_EXPORT const NamedColor* findColor(register const char* str, register unsigned len);
class PLATFORM_EXPORT Color {
- USING_FAST_MALLOC(Color);
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
Color() : m_color(Color::transparent) { }
Color(RGBA32 color) : m_color(color) { }

Powered by Google App Engine
This is Rietveld 408576698