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

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

Issue 1812243003: Remove methods from WebGraphicsContext3D that wrap type casts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-tplus
Patch Set: complex-casts: rebase 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.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLSync.h b/third_party/WebKit/Source/modules/webgl/WebGLSync.h
index ca47ba2b220f4e3a82f9f56063a8954e99d82690..ba9a7815f6b90a40192b3b32ca4ecd37f93c1590 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLSync.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLSync.h
@@ -7,6 +7,7 @@
#include "modules/webgl/WebGLSharedObject.h"
#include "public/platform/WebGraphicsContext3D.h"
+#include "third_party/khronos/GLES2/gl2.h"
namespace blink {
@@ -17,12 +18,12 @@ class WebGLSync : public WebGLSharedObject {
public:
~WebGLSync() override;
- WGC3Dsync object() const { return m_object; }
+ GLsync object() const { return m_object; }
protected:
- WebGLSync(WebGL2RenderingContextBase*, WGC3Dsync, GLenum objectType);
+ WebGLSync(WebGL2RenderingContextBase*, GLsync, GLenum objectType);
- bool hasObject() const override { return m_object != 0; }
+ bool hasObject() const override { return m_object != nullptr; }
void deleteObjectImpl(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*) override;
GLenum objectType() const { return m_objectType; }
@@ -30,7 +31,7 @@ protected:
private:
bool isSync() const override { return true; }
- WGC3Dsync m_object;
+ GLsync m_object;
GLenum m_objectType;
};

Powered by Google App Engine
This is Rietveld 408576698