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

Unified Diff: Source/core/html/canvas/WebGLUniformLocation.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/WebGLUniformLocation.h
diff --git a/Source/core/html/canvas/WebGLUniformLocation.h b/Source/core/html/canvas/WebGLUniformLocation.h
index 033c04892717daeb3d86f7d4eed82a7094a4dc29..da0d45b172fa5b554806d17a8e42f42bd1911759 100644
--- a/Source/core/html/canvas/WebGLUniformLocation.h
+++ b/Source/core/html/canvas/WebGLUniformLocation.h
@@ -34,19 +34,21 @@
namespace blink {
-class WebGLUniformLocation FINAL : public RefCounted<WebGLUniformLocation>, public ScriptWrappable {
+class WebGLUniformLocation FINAL : public RefCountedWillBeGarbageCollected<WebGLUniformLocation>, public ScriptWrappable {
public:
- static PassRefPtr<WebGLUniformLocation> create(WebGLProgram*, GLint location);
+ static PassRefPtrWillBeRawPtr<WebGLUniformLocation> create(WebGLProgram*, GLint location);
WebGLProgram* program() const;
GLint location() const;
+ void trace(Visitor*);
+
protected:
WebGLUniformLocation(WebGLProgram*, GLint location);
private:
- RefPtr<WebGLProgram> m_program;
+ RefPtrWillBeMember<WebGLProgram> m_program;
GLint m_location;
unsigned m_linkCount;
};

Powered by Google App Engine
This is Rietveld 408576698