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

Unified Diff: Source/core/html/canvas/WebGLActiveInfo.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/WebGLActiveInfo.h
diff --git a/Source/core/html/canvas/WebGLActiveInfo.h b/Source/core/html/canvas/WebGLActiveInfo.h
index 51b6e77b16ffc2895abc4e0c894806d7b59578be..9d172ba5fca066b3c833ae40819c7f1f9c70537c 100644
--- a/Source/core/html/canvas/WebGLActiveInfo.h
+++ b/Source/core/html/canvas/WebGLActiveInfo.h
@@ -34,16 +34,18 @@
namespace blink {
-class WebGLActiveInfo : public RefCounted<WebGLActiveInfo>, public ScriptWrappable {
+class WebGLActiveInfo FINAL : public RefCountedWillBeGarbageCollectedFinalized<WebGLActiveInfo>, public ScriptWrappable {
public:
- static PassRefPtr<WebGLActiveInfo> create(const String& name, GLenum type, GLint size)
+ static PassRefPtrWillBeRawPtr<WebGLActiveInfo> create(const String& name, GLenum type, GLint size)
{
- return adoptRef(new WebGLActiveInfo(name, type, size));
+ return adoptRefWillBeNoop(new WebGLActiveInfo(name, type, size));
}
String name() const { return m_name; }
GLenum type() const { return m_type; }
GLint size() const { return m_size; }
+ void trace(Visitor*) { }
+
private:
WebGLActiveInfo(const String& name, GLenum type, GLint size)
: m_name(name)

Powered by Google App Engine
This is Rietveld 408576698