Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLSync.cpp

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "gpu/command_buffer/client/gles2_interface.h" 7 #include "gpu/command_buffer/client/gles2_interface.h"
8 #include "modules/webgl/WebGL2RenderingContextBase.h" 8 #include "modules/webgl/WebGL2RenderingContextBase.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 WebGLSync::~WebGLSync() 12 WebGLSync::~WebGLSync()
13 { 13 {
14 // See the comment in WebGLObject::detachAndDeleteObject(). 14 // See the comment in WebGLObject::detachAndDeleteObject().
15 detachAndDeleteObject(); 15 detachAndDeleteObject();
16 } 16 }
17 17
18 WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx, GLsync object, GLenum obje ctType) 18 WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx, GLsync object, GLenum obje ctType)
19 : WebGLSharedObject(ctx) 19 : WebGLSharedObject(ctx)
20 , m_object(object) 20 , m_object(object)
21 , m_objectType(objectType) 21 , m_objectType(objectType)
22 { 22 {
23 } 23 }
24 24
25 void WebGLSync::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gles2::GL ES2Interface* gl) 25 void WebGLSync::deleteObjectImpl(gpu::gles2::GLES2Interface* gl)
26 { 26 {
27 gl->DeleteSync(m_object); 27 gl->DeleteSync(m_object);
28 m_object = 0; 28 m_object = 0;
29 } 29 }
30 30
31 } // namespace blink 31 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLSync.h ('k') | third_party/WebKit/Source/modules/webgl/WebGLTexture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698