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

Unified Diff: Source/core/html/canvas/CanvasRenderingContextFactory.h

Issue 1306413003: Make classes and structures in core/html 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
« no previous file with comments | « Source/core/html/TimeRanges.h ('k') | Source/core/html/forms/DateTimeChooser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContextFactory.h
diff --git a/Source/core/html/canvas/CanvasRenderingContextFactory.h b/Source/core/html/canvas/CanvasRenderingContextFactory.h
index a50e6a7c0c32e252e2ddbb34d40271fcc1d265a6..ac9853c0727dddcfd1054fb1faaa26db43eac7c6 100644
--- a/Source/core/html/canvas/CanvasRenderingContextFactory.h
+++ b/Source/core/html/canvas/CanvasRenderingContextFactory.h
@@ -9,6 +9,7 @@
#include "core/dom/Document.h"
#include "core/html/canvas/CanvasContextCreationAttributes.h"
#include "core/html/canvas/CanvasRenderingContext.h"
+#include "wtf/Allocator.h"
#include "wtf/PassRefPtr.h"
namespace blink {
@@ -16,7 +17,10 @@ namespace blink {
class HTMLCanvasElement;
class CORE_EXPORT CanvasRenderingContextFactory {
+ WTF_MAKE_FAST_ALLOCATED(CanvasRenderingContextFactory);
+ WTF_MAKE_NONCOPYABLE(CanvasRenderingContextFactory);
public:
+ CanvasRenderingContextFactory() = default;
virtual ~CanvasRenderingContextFactory() { }
virtual PassOwnPtrWillBeRawPtr<CanvasRenderingContext> create(HTMLCanvasElement*, const CanvasContextCreationAttributes&, Document&) = 0;
« no previous file with comments | « Source/core/html/TimeRanges.h ('k') | Source/core/html/forms/DateTimeChooser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698