| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/webgl/WebGLSync.h" | 5 #include "modules/webgl/WebGLSync.h" |
| 6 | 6 |
| 7 #include "modules/webgl/WebGL2RenderingContextBase.h" | 7 #include "modules/webgl/WebGL2RenderingContextBase.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 WebGLSync::~WebGLSync() | 11 WebGLSync::~WebGLSync() |
| 12 { | 12 { |
| 13 // See the comment in WebGLObject::detachAndDeleteObject(). | 13 // See the comment in WebGLObject::detachAndDeleteObject(). |
| 14 detachAndDeleteObject(); | 14 detachAndDeleteObject(); |
| 15 } | 15 } |
| 16 | 16 |
| 17 WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx, WGC3Dsync object, GLenum o
bjectType) | 17 WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx, WGC3Dsync object, GLenum o
bjectType) |
| 18 : WebGLSharedObject(ctx) | 18 : WebGLSharedObject(ctx) |
| 19 , m_object(object) | 19 , m_object(object) |
| 20 , m_objectType(objectType) | 20 , m_objectType(objectType) |
| 21 { | 21 { |
| 22 } | 22 } |
| 23 | 23 |
| 24 void WebGLSync::deleteObjectImpl(WebGraphicsContext3D* context3d) | 24 void WebGLSync::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gles2::GL
ES2Interface*) |
| 25 { | 25 { |
| 26 context3d->deleteSync(m_object); | 26 context3d->deleteSync(m_object); |
| 27 m_object = 0; | 27 m_object = 0; |
| 28 } | 28 } |
| 29 | 29 |
| 30 } // namespace blink | 30 } // namespace blink |
| OLD | NEW |