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

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

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years 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 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;

Powered by Google App Engine
This is Rietveld 408576698