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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "core/html/canvas/WebGLSync.h" | 7 #include "core/html/canvas/WebGLSync.h" |
8 | 8 |
9 #include "core/html/canvas/WebGL2RenderingContextBase.h" | 9 #include "core/html/canvas/WebGL2RenderingContextBase.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 detachAndDeleteObject(); | 22 detachAndDeleteObject(); |
23 } | 23 } |
24 | 24 |
25 WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx, WGC3Dsync object, GLenum o
bjectType) | 25 WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx, WGC3Dsync object, GLenum o
bjectType) |
26 : WebGLSharedObject(ctx) | 26 : WebGLSharedObject(ctx) |
27 , m_object(object) | 27 , m_object(object) |
28 , m_objectType(objectType) | 28 , m_objectType(objectType) |
29 { | 29 { |
30 } | 30 } |
31 | 31 |
32 void WebGLSync::deleteObjectImpl(blink::WebGraphicsContext3D* context3d) | 32 void WebGLSync::deleteObjectImpl(WebGraphicsContext3D* context3d) |
33 { | 33 { |
34 context3d->deleteSync(m_object); | 34 context3d->deleteSync(m_object); |
35 m_object = 0; | 35 m_object = 0; |
36 } | 36 } |
37 | 37 |
38 } // namespace blink | 38 } // namespace blink |
OLD | NEW |