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

Unified Diff: Source/core/paint/MediaControlsPainter.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/MediaControlsPainter.h
diff --git a/Source/core/paint/MediaControlsPainter.h b/Source/core/paint/MediaControlsPainter.h
index aa3781a1aac524ecc82dc2901776d775c8487246..64b7fd36ae061ac4ea7cb265e73de397d7b87a3e 100644
--- a/Source/core/paint/MediaControlsPainter.h
+++ b/Source/core/paint/MediaControlsPainter.h
@@ -28,6 +28,8 @@
#ifndef MediaControlsPainter_h
#define MediaControlsPainter_h
+#include "wtf/Allocator.h"
+
namespace blink {
struct PaintInfo;
@@ -37,6 +39,7 @@ class IntRect;
class LayoutObject;
class MediaControlsPainter {
+ STATIC_ONLY(MediaControlsPainter);
public:
static bool paintMediaMuteButton(LayoutObject*, const PaintInfo&, const IntRect&);
static bool paintMediaPlayButton(LayoutObject*, const PaintInfo&, const IntRect&);

Powered by Google App Engine
This is Rietveld 408576698