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

Unified Diff: Source/core/html/canvas/WebGLContextAttributes.cpp

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: Adjust GC_PLUGIN_IGNORE() bug reference 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/WebGLContextAttributes.cpp
diff --git a/Source/core/html/canvas/WebGLContextAttributes.cpp b/Source/core/html/canvas/WebGLContextAttributes.cpp
index 36ed468320bb6944351fb28cd006e93c08979bfe..d534b45ff3ea7af0e686ba9a87f8c44c2ca12d3a 100644
--- a/Source/core/html/canvas/WebGLContextAttributes.cpp
+++ b/Source/core/html/canvas/WebGLContextAttributes.cpp
@@ -32,9 +32,11 @@
namespace WebCore {
-PassRefPtr<WebGLContextAttributes> WebGLContextAttributes::create()
+DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(WebGLContextAttributes);
+
+PassRefPtrWillBeRawPtr<WebGLContextAttributes> WebGLContextAttributes::create()
{
- return adoptRef(new WebGLContextAttributes());
+ return adoptRefWillBeNoop(new WebGLContextAttributes());
}
WebGLContextAttributes::WebGLContextAttributes()
@@ -63,13 +65,9 @@ WebGLContextAttributes::WebGLContextAttributes(const WebGLContextAttributes& att
ScriptWrappable::init(this);
}
-WebGLContextAttributes::~WebGLContextAttributes()
-{
-}
-
-PassRefPtr<WebGLContextAttributes> WebGLContextAttributes::clone() const
+PassRefPtrWillBeRawPtr<WebGLContextAttributes> WebGLContextAttributes::clone() const
{
- return adoptRef(new WebGLContextAttributes(*this));
+ return adoptRefWillBeNoop(new WebGLContextAttributes(*this));
}
bool WebGLContextAttributes::alpha() const

Powered by Google App Engine
This is Rietveld 408576698