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

Unified Diff: Source/core/html/canvas/CanvasPattern.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/CanvasPattern.h
diff --git a/Source/core/html/canvas/CanvasPattern.h b/Source/core/html/canvas/CanvasPattern.h
index af2f502f19e36c82278d6d9435807fa01d4962d9..4bdc46f7a621f64f175364dd0b28e06af135454d 100644
--- a/Source/core/html/canvas/CanvasPattern.h
+++ b/Source/core/html/canvas/CanvasPattern.h
@@ -37,19 +37,21 @@ namespace blink {
class ExceptionState;
class Image;
-class CanvasPattern : public RefCounted<CanvasPattern>, public ScriptWrappable {
+class CanvasPattern FINAL : public RefCountedWillBeGarbageCollectedFinalized<CanvasPattern>, public ScriptWrappable {
public:
static void parseRepetitionType(const String&, bool& repeatX, bool& repeatY, ExceptionState&);
- static PassRefPtr<CanvasPattern> create(PassRefPtr<Image> image, bool repeatX, bool repeatY, bool originClean)
+ static PassRefPtrWillBeRawPtr<CanvasPattern> create(PassRefPtr<Image> image, bool repeatX, bool repeatY, bool originClean)
{
- return adoptRef(new CanvasPattern(image, repeatX, repeatY, originClean));
+ return adoptRefWillBeNoop(new CanvasPattern(image, repeatX, repeatY, originClean));
}
Pattern* pattern() const { return m_pattern.get(); }
bool originClean() const { return m_originClean; }
+ void trace(Visitor*) { }
+
private:
CanvasPattern(PassRefPtr<Image>, bool repeatX, bool repeatY, bool originClean);

Powered by Google App Engine
This is Rietveld 408576698