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

Unified Diff: Source/core/html/ImageData.h

Issue 214153006: Oilpan: move ImageData to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/HTMLCanvasElement.cpp ('k') | Source/core/html/ImageData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/ImageData.h
diff --git a/Source/core/html/ImageData.h b/Source/core/html/ImageData.h
index 1630fb9d09faf8e998feca69679d35f418245deb..44d1c3c47e2b71aaf20a09851fdab55920dbce49 100644
--- a/Source/core/html/ImageData.h
+++ b/Source/core/html/ImageData.h
@@ -30,6 +30,7 @@
#define ImageData_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "platform/geometry/IntSize.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -39,18 +40,20 @@ namespace WebCore {
class ExceptionState;
-class ImageData : public RefCounted<ImageData>, public ScriptWrappable {
+class ImageData FINAL : public RefCountedWillBeGarbageCollectedFinalized<ImageData>, public ScriptWrappable {
public:
- static PassRefPtr<ImageData> create(const IntSize&);
- static PassRefPtr<ImageData> create(const IntSize&, PassRefPtr<Uint8ClampedArray>);
- static PassRefPtr<ImageData> create(unsigned width, unsigned height, ExceptionState&);
- static PassRefPtr<ImageData> create(Uint8ClampedArray*, unsigned width, unsigned height, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<ImageData> create(const IntSize&);
+ static PassRefPtrWillBeRawPtr<ImageData> create(const IntSize&, PassRefPtr<Uint8ClampedArray>);
+ static PassRefPtrWillBeRawPtr<ImageData> create(unsigned width, unsigned height, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<ImageData> create(Uint8ClampedArray*, unsigned width, unsigned height, ExceptionState&);
IntSize size() const { return m_size; }
int width() const { return m_size.width(); }
int height() const { return m_size.height(); }
Uint8ClampedArray* data() const { return m_data.get(); }
+ void trace(Visitor*) { }
+
private:
ImageData(const IntSize&);
haraken 2014/03/31 12:51:59 Add explicit.
sof 2014/03/31 13:02:25 Done.
ImageData(const IntSize&, PassRefPtr<Uint8ClampedArray>);
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/core/html/ImageData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698