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

Unified Diff: Source/core/html/canvas/WebGLContextAttributes.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/WebGLContextAttributes.h
diff --git a/Source/core/html/canvas/WebGLContextAttributes.h b/Source/core/html/canvas/WebGLContextAttributes.h
index 414ec0025fd658b6641e773c74e4e64694e503f3..d609920e0773689b961d761465cc55f3a1f712fd 100644
--- a/Source/core/html/canvas/WebGLContextAttributes.h
+++ b/Source/core/html/canvas/WebGLContextAttributes.h
@@ -27,14 +27,15 @@
#ifndef WebGLContextAttributes_h
#define WebGLContextAttributes_h
+#include "bindings/v8/ScriptWrappable.h"
#include "core/html/canvas/CanvasContextAttributes.h"
#include "core/platform/graphics/GraphicsContext3D.h"
-#include <wtf/PassRefPtr.h>
+#include "wtf/PassRefPtr.h"
namespace WebCore {
-class WebGLContextAttributes : public CanvasContextAttributes {
- public:
+class WebGLContextAttributes : public CanvasContextAttributes, public ScriptWrappable {
+public:
virtual ~WebGLContextAttributes();
// Create a new attributes object
@@ -74,11 +75,11 @@ class WebGLContextAttributes : public CanvasContextAttributes {
// form that can be used to initialize a GraphicsContext3D.
GraphicsContext3D::Attributes attributes() const;
- protected:
+protected:
WebGLContextAttributes();
WebGLContextAttributes(GraphicsContext3D::Attributes attributes);
- private:
+private:
GraphicsContext3D::Attributes m_attrs;
};
« no previous file with comments | « Source/core/html/canvas/WebGLCompressedTextureS3TC.cpp ('k') | Source/core/html/canvas/WebGLContextAttributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698