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

Unified Diff: services/js/modules/gl/context.h

Issue 788863003: Restore the JS Spinning Cube demo (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Removed spurious includes Created 6 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
Index: services/js/modules/gl/context.h
diff --git a/services/js/modules/gl/context.h b/services/js/modules/gl/context.h
index ac53c784ed69fa256eb31adf1c5e3c03a5bff74b..5395d36979a612c0fca823d7d195fd89df6fe0ad 100644
--- a/services/js/modules/gl/context.h
+++ b/services/js/modules/gl/context.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_SERVICES_JS_MODULES_GL_CONTEXT_H_
-#define MOJO_SERVICES_JS_MODULES_GL_CONTEXT_H_
+#ifndef SERVICES_JS_MODULES_GL_CONTEXT_H_
+#define SERVICES_JS_MODULES_GL_CONTEXT_H_
#include <GLES2/gl2.h>
@@ -51,6 +51,7 @@ class Context : public gin::Wrappable<Context> {
static void VertexAttribPointer(GLuint index, GLint size, GLenum type,
GLboolean normalized, GLsizei stride,
uint64_t offset);
+ void Resize(GLuint width, GLuint height, GLfloat scale_factor);
private:
gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
@@ -72,4 +73,4 @@ class Context : public gin::Wrappable<Context> {
} // namespace gl
} // namespace js
-#endif // MOJO_SERVICES_JS_MODULES_GL_CONTEXT_H_
+#endif // SERVICES_JS_MODULES_GL_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698