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

Unified Diff: mojo/apps/js/bindings/gl/opaque.h

Issue 114883003: Implement more of the JavaScript GL API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 7 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
« no previous file with comments | « mojo/apps/js/bindings/gl/context.cc ('k') | mojo/apps/js/bindings/gl/opaque.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/bindings/gl/opaque.h
diff --git a/mojo/apps/js/bindings/gl/opaque.h b/mojo/apps/js/bindings/gl/opaque.h
deleted file mode 100644
index 475565806ae9dd04d9e6277f387e91355b381d29..0000000000000000000000000000000000000000
--- a/mojo/apps/js/bindings/gl/opaque.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_APPS_JS_BINDINGS_GL_OPAQUE_H_
-#define MOJO_APPS_JS_BINDINGS_GL_OPAQUE_H_
-
-#include <GLES2/gl2.h>
-
-#include "gin/handle.h"
-#include "gin/public/wrapper_info.h"
-#include "gin/wrappable.h"
-#include "v8/include/v8.h"
-
-namespace mojo {
-namespace js {
-namespace gl {
-
-// WebGL has many interfaces, such as WebGLObject, WebGLBuffer, etc, which wrap
-// integers that are opaque to script. This class is used for all those objects.
-class Opaque : public gin::Wrappable<Opaque> {
- public:
- static gin::WrapperInfo kWrapperInfo;
-
- static gin::Handle<Opaque> Create(v8::Isolate* isolate, GLuint value);
-
- GLuint value() const { return value_; }
- void set_value(GLuint val) { value_ = val; }
-
- private:
- Opaque(GLuint value);
-
- GLuint value_;
-};
-
-} // namespace gl
-} // namespace js
-} // namespace mojo
-
-#endif // MOJO_APPS_JS_BINDINGS_GL_CONTEXT_H_
« no previous file with comments | « mojo/apps/js/bindings/gl/context.cc ('k') | mojo/apps/js/bindings/gl/opaque.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698