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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLSync.cpp

Issue 1812243003: Remove methods from WebGraphicsContext3D that wrap type casts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-tplus
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
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 cf5d2c5733491f4744d16c098feac7e6a1c62780..bcb628221579957026c11cc04981a590fd274792 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLSync.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLSync.cpp
@@ -4,6 +4,7 @@
#include "modules/webgl/WebGLSync.h"
+#include "gpu/command_buffer/client/gles2_interface.h"
#include "modules/webgl/WebGL2RenderingContextBase.h"
namespace blink {
@@ -14,16 +15,16 @@ WebGLSync::~WebGLSync()
detachAndDeleteObject();
}
-WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx, WGC3Dsync object, GLenum objectType)
+WebGLSync::WebGLSync(WebGL2RenderingContextBase* ctx, GLsync object, GLenum objectType)
: WebGLSharedObject(ctx)
, m_object(object)
, m_objectType(objectType)
{
}
-void WebGLSync::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gles2::GLES2Interface*)
+void WebGLSync::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gles2::GLES2Interface* gl)
{
- context3d->deleteSync(m_object);
+ gl->DeleteSync(m_object);
m_object = 0;
}

Powered by Google App Engine
This is Rietveld 408576698