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

Unified Diff: Source/core/html/canvas/OESVertexArrayObject.h

Issue 15481002: Make WebGL objects scriptwrappable so that binding integrity checks may be applied to them. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebGLProgram really really. Created 7 years, 7 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: Source/core/html/canvas/OESVertexArrayObject.h
diff --git a/Source/core/html/canvas/OESVertexArrayObject.h b/Source/core/html/canvas/OESVertexArrayObject.h
index 728dd6a2801acced56670542b5b92a530e5a18fa..da2ac64dd24ab08f25844712264f4893cffa8191 100644
--- a/Source/core/html/canvas/OESVertexArrayObject.h
+++ b/Source/core/html/canvas/OESVertexArrayObject.h
@@ -26,11 +26,12 @@
#ifndef OESVertexArrayObject_h
#define OESVertexArrayObject_h
+#include "bindings/v8/ScriptWrappable.h"
#include "core/html/canvas/WebGLExtension.h"
#include "core/html/canvas/WebGLVertexArrayObjectOES.h"
#include "core/platform/graphics/GraphicsTypes3D.h"
-#include <wtf/PassOwnPtr.h>
-#include <wtf/UnusedParam.h>
+#include "wtf/PassOwnPtr.h"
+#include "wtf/UnusedParam.h"
namespace WebCore {
@@ -39,7 +40,7 @@ class WebGLVertexArrayObjectOES;
typedef int ExceptionCode;
-class OESVertexArrayObject : public WebGLExtension {
+class OESVertexArrayObject : public WebGLExtension, public ScriptWrappable {
public:
static PassOwnPtr<OESVertexArrayObject> create(WebGLRenderingContext*);
static bool supported(WebGLRenderingContext*);
@@ -47,7 +48,7 @@ public:
virtual ~OESVertexArrayObject();
virtual ExtensionName getName() const;
-
+
PassRefPtr<WebGLVertexArrayObjectOES> createVertexArrayOES();
void deleteVertexArrayOES(WebGLVertexArrayObjectOES*);
GC3Dboolean isVertexArrayOES(WebGLVertexArrayObjectOES*);
« no previous file with comments | « Source/core/html/canvas/OESTextureHalfFloatLinear.cpp ('k') | Source/core/html/canvas/OESVertexArrayObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698