| Index: third_party/WebKit/Source/modules/webgl/WebGLSync.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLSync.cpp b/third_party/WebKit/Source/modules/webgl/WebGLSync.cpp
|
| index 2556fac254d76cbff90350b337d1e42cfd1ab8c6..b4785ad3598bb09facf584001fc6a4f81e4d5aa9 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLSync.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLSync.cpp
|
| @@ -9,16 +9,15 @@
|
|
|
| namespace blink {
|
|
|
| -WebGLSync::~WebGLSync() {
|
| - // See the comment in WebGLObject::detachAndDeleteObject().
|
| - detachAndDeleteObject();
|
| -}
|
| -
|
| WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx,
|
| GLsync object,
|
| GLenum objectType)
|
| : WebGLSharedObject(ctx), m_object(object), m_objectType(objectType) {}
|
|
|
| +WebGLSync::~WebGLSync() {
|
| + runDestructor();
|
| +}
|
| +
|
| void WebGLSync::deleteObjectImpl(gpu::gles2::GLES2Interface* gl) {
|
| gl->DeleteSync(m_object);
|
| m_object = 0;
|
|
|