| Index: Source/modules/webgl/WebGLShader.cpp
|
| diff --git a/Source/modules/webgl/WebGLShader.cpp b/Source/modules/webgl/WebGLShader.cpp
|
| index 45602bc7b3ab030cfc35aa2ae2379765977ad701..6b99d306410d4aacc7bb0e3507e3d33a110cc3cd 100644
|
| --- a/Source/modules/webgl/WebGLShader.cpp
|
| +++ b/Source/modules/webgl/WebGLShader.cpp
|
| @@ -31,9 +31,9 @@
|
|
|
| namespace blink {
|
|
|
| -PassRefPtrWillBeRawPtr<WebGLShader> WebGLShader::create(WebGLRenderingContextBase* ctx, GLenum type)
|
| +WebGLShader* WebGLShader::create(WebGLRenderingContextBase* ctx, GLenum type)
|
| {
|
| - return adoptRefWillBeNoop(new WebGLShader(ctx, type));
|
| + return new WebGLShader(ctx, type);
|
| }
|
|
|
| WebGLShader::WebGLShader(WebGLRenderingContextBase* ctx, GLenum type)
|
| @@ -46,13 +46,7 @@ WebGLShader::WebGLShader(WebGLRenderingContextBase* ctx, GLenum type)
|
|
|
| WebGLShader::~WebGLShader()
|
| {
|
| - // 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();
|
| }
|
|
|
|
|