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

Unified Diff: Source/web/WebGraphicsContextImpl.h

Issue 1328773002: Make classes and structures in web fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/web/WebFontImpl.h ('k') | Source/web/WebInputEventConversion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebGraphicsContextImpl.h
diff --git a/Source/web/WebGraphicsContextImpl.h b/Source/web/WebGraphicsContextImpl.h
index 954107656cc8dc6165d4e122bd09583e2697328b..60a23225029d21165e620181d222d96f52fb00c3 100644
--- a/Source/web/WebGraphicsContextImpl.h
+++ b/Source/web/WebGraphicsContextImpl.h
@@ -8,6 +8,7 @@
#include "platform/graphics/paint/DisplayItem.h"
#include "platform/graphics/paint/DisplayItemClient.h"
#include "public/web/WebGraphicsContext.h"
+#include "wtf/Allocator.h"
#include "wtf/OwnPtr.h"
namespace blink {
@@ -18,7 +19,8 @@ class GraphicsContext;
// Wraps a blink::GraphicsContext.
// Internal consumers can extract the underlying context (via WebGraphicsContextImpl).
// External consumers can make a single drawing using a WebCanvas.
-class WebGraphicsContextImpl : public WebGraphicsContext {
+class WebGraphicsContextImpl final : public WebGraphicsContext {
+ DISALLOW_ALLOCATION();
public:
WebGraphicsContextImpl(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem::Type);
~WebGraphicsContextImpl();
« no previous file with comments | « Source/web/WebFontImpl.h ('k') | Source/web/WebInputEventConversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698