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

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

Issue 365653002: Oilpan: move 2D Canvas and WebGL objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Smaller adjustments Created 6 years, 5 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/html/canvas/CanvasContextAttributes.h
diff --git a/Source/core/html/canvas/CanvasContextAttributes.h b/Source/core/html/canvas/CanvasContextAttributes.h
index afa8df892ee4cf80cb889c5820b3ba74c072ea12..c9f3da880fff422995cd3ad8b550112921415dd6 100644
--- a/Source/core/html/canvas/CanvasContextAttributes.h
+++ b/Source/core/html/canvas/CanvasContextAttributes.h
@@ -27,6 +27,7 @@
#ifndef CanvasContextAttributes_h
#define CanvasContextAttributes_h
+#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
namespace blink {
@@ -34,11 +35,12 @@ namespace blink {
// A base class for any attributes that are needed which would affect
// the creation of the Canvas's rendering context.
-class CanvasContextAttributes : public RefCounted<CanvasContextAttributes> {
- public:
- virtual ~CanvasContextAttributes();
+class CanvasContextAttributes : public RefCountedWillBeGarbageCollectedFinalized<CanvasContextAttributes> {
+ DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CanvasContextAttributes);
+public:
+ virtual void trace(Visitor*) { }
- protected:
+protected:
CanvasContextAttributes();
};

Powered by Google App Engine
This is Rietveld 408576698