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

Unified Diff: Source/core/html/canvas/WebGLRenderbuffer.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/WebGLRenderbuffer.h
diff --git a/Source/core/html/canvas/WebGLRenderbuffer.h b/Source/core/html/canvas/WebGLRenderbuffer.h
index bab4fc779935bef33c8e6eadf9aefe0243798784..f4fdc08c8070df542fa0ac67af8dab100455311d 100644
--- a/Source/core/html/canvas/WebGLRenderbuffer.h
+++ b/Source/core/html/canvas/WebGLRenderbuffer.h
@@ -36,7 +36,7 @@ class WebGLRenderbuffer FINAL : public WebGLSharedObject, public ScriptWrappable
public:
virtual ~WebGLRenderbuffer();
- static PassRefPtr<WebGLRenderbuffer> create(WebGLRenderingContextBase*);
+ static PassRefPtrWillBeRawPtr<WebGLRenderbuffer> create(WebGLRenderingContextBase*);
void setInternalFormat(GLenum internalformat)
{
@@ -56,12 +56,14 @@ public:
void setHasEverBeenBound() { m_hasEverBeenBound = true; }
- void setEmulatedStencilBuffer(PassRefPtr<WebGLRenderbuffer> buffer) { m_emulatedStencilBuffer = buffer; }
+ void setEmulatedStencilBuffer(PassRefPtrWillBeRawPtr<WebGLRenderbuffer> buffer) { m_emulatedStencilBuffer = buffer; }
WebGLRenderbuffer* emulatedStencilBuffer() const { return m_emulatedStencilBuffer.get(); }
void deleteEmulatedStencilBuffer(blink::WebGraphicsContext3D* context3d);
+ virtual void trace(Visitor*) OVERRIDE;
+
protected:
- WebGLRenderbuffer(WebGLRenderingContextBase*);
+ explicit WebGLRenderbuffer(WebGLRenderingContextBase*);
virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject) OVERRIDE;
@@ -73,7 +75,7 @@ private:
bool m_hasEverBeenBound;
- RefPtr<WebGLRenderbuffer> m_emulatedStencilBuffer;
+ RefPtrWillBeMember<WebGLRenderbuffer> m_emulatedStencilBuffer;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698