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

Unified Diff: third_party/WebKit/Source/platform/graphics/Gradient.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/Gradient.h
diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.h b/third_party/WebKit/Source/platform/graphics/Gradient.h
index c5e6ac532297b74bc06f6c915fbfc18235622c66..49e0f740ab84df171045dfcd1c74eab573fa7e70 100644
--- a/third_party/WebKit/Source/platform/graphics/Gradient.h
+++ b/third_party/WebKit/Source/platform/graphics/Gradient.h
@@ -34,6 +34,7 @@
#include "platform/graphics/Color.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/transforms/AffineTransform.h"
+#include "wtf/Noncopyable.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -45,6 +46,7 @@ class SkShader;
namespace blink {
class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
+ WTF_MAKE_NONCOPYABLE(Gradient);
public:
static PassRefPtr<Gradient> create(const FloatPoint& p0, const FloatPoint& p1)
{
@@ -57,6 +59,7 @@ public:
~Gradient();
struct ColorStop {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
float stop;
Color color;

Powered by Google App Engine
This is Rietveld 408576698