Index: Source/modules/webgl/CHROMIUMValuebuffer.cpp |
diff --git a/Source/modules/webgl/CHROMIUMValuebuffer.cpp b/Source/modules/webgl/CHROMIUMValuebuffer.cpp |
index 025870849312df8673516b4e1f7130d8cbdc75c3..b38b053df761999ba56c5e33c89b15befd692af9 100644 |
--- a/Source/modules/webgl/CHROMIUMValuebuffer.cpp |
+++ b/Source/modules/webgl/CHROMIUMValuebuffer.cpp |
@@ -10,20 +10,14 @@ |
namespace blink { |
-PassRefPtrWillBeRawPtr<CHROMIUMValuebuffer> CHROMIUMValuebuffer::create(WebGLRenderingContextBase* ctx) |
+CHROMIUMValuebuffer* CHROMIUMValuebuffer::create(WebGLRenderingContextBase* ctx) |
{ |
- return adoptRefWillBeNoop(new CHROMIUMValuebuffer(ctx)); |
+ return new CHROMIUMValuebuffer(ctx); |
} |
CHROMIUMValuebuffer::~CHROMIUMValuebuffer() |
{ |
- // Always call detach here to ensure that platform object deletion |
- // happens with Oilpan enabled. It keeps the code regular to do it |
- // with or without Oilpan enabled. |
- // |
- // See comment in WebGLBuffer's destructor for additional |
- // information on why this is done for WebGLSharedObject-derived |
- // objects. |
+ // See the comment in WebGLObject::detachAndDeleteObject(). |
detachAndDeleteObject(); |
} |