| Index: Source/modules/webgl/WebGLTransformFeedback.cpp
|
| diff --git a/Source/modules/webgl/WebGLTransformFeedback.cpp b/Source/modules/webgl/WebGLTransformFeedback.cpp
|
| index ccb74c6afedba4f94797584c12d12f6445e09a40..fe69008fa0213e00f90bcc4c73b5d924b7035ebf 100644
|
| --- a/Source/modules/webgl/WebGLTransformFeedback.cpp
|
| +++ b/Source/modules/webgl/WebGLTransformFeedback.cpp
|
| @@ -10,14 +10,20 @@
|
|
|
| namespace blink {
|
|
|
| -WebGLTransformFeedback* WebGLTransformFeedback::create(WebGL2RenderingContextBase* ctx)
|
| +PassRefPtrWillBeRawPtr<WebGLTransformFeedback> WebGLTransformFeedback::create(WebGL2RenderingContextBase* ctx)
|
| {
|
| - return new WebGLTransformFeedback(ctx);
|
| + return adoptRefWillBeNoop(new WebGLTransformFeedback(ctx));
|
| }
|
|
|
| WebGLTransformFeedback::~WebGLTransformFeedback()
|
| {
|
| - // See the comment in WebGLObject::detachAndDeleteObject().
|
| + // 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.
|
| detachAndDeleteObject();
|
| }
|
|
|
|
|