| Index: mojo/apps/js/bindings/gl/context.h
|
| diff --git a/mojo/apps/js/bindings/gl/context.h b/mojo/apps/js/bindings/gl/context.h
|
| index 40203c317cb559ddc3fa6864fc99c9fd490d29c4..8897b31745289b158ae0e0614081446214e5e340 100644
|
| --- a/mojo/apps/js/bindings/gl/context.h
|
| +++ b/mojo/apps/js/bindings/gl/context.h
|
| @@ -10,19 +10,17 @@
|
| #include "gin/handle.h"
|
| #include "gin/public/wrapper_info.h"
|
| #include "gin/wrappable.h"
|
| -#include "mojo/apps/js/bindings/gl/opaque.h"
|
| #include "v8/include/v8.h"
|
|
|
| namespace gin {
|
| class Arguments;
|
| +class ArrayBufferView;
|
| }
|
|
|
| namespace mojo {
|
| namespace js {
|
| namespace gl {
|
|
|
| -typedef Opaque Shader;
|
| -
|
| // Context implements WebGLRenderingContext.
|
| class Context : public gin::Wrappable<Context> {
|
| public:
|
| @@ -32,12 +30,16 @@ class Context : public gin::Wrappable<Context> {
|
| int width, int height);
|
| static v8::Handle<v8::ObjectTemplate> GetObjectTemplate(v8::Isolate* isolate);
|
|
|
| - static gin::Handle<Shader> CreateShader(const gin::Arguments& arguments,
|
| - GLenum type);
|
| - static void ShaderSource(gin::Handle<Shader> shader,
|
| - const std::string& source);
|
| - static void CompileShader(const gin::Arguments& arguments,
|
| - gin::Handle<Shader> shader);
|
| + static void BufferData(GLenum target, const gin::ArrayBufferView& buffer,
|
| + GLenum usage);
|
| + static void CompileShader(const gin::Arguments& args, GLuint shader);
|
| + static GLuint CreateBuffer();
|
| + static GLint GetAttribLocation(GLuint program, const std::string& name);
|
| + static std::string GetShaderInfoLog(GLuint shader);
|
| + static GLint GetUniformLocation(GLuint program, const std::string& name);
|
| + static void ShaderSource(GLuint shader, const std::string& source);
|
| + static void VertexAttribPointer(GLuint index, GLint size, GLenum type,
|
| + bool normalized, GLsizei stride, long offset);
|
|
|
| private:
|
| Context(uint64_t encoded, int width, int height);
|
|
|