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

Side by Side Diff: mojo/apps/js/bindings/gl/context.h

Issue 619493002: Mojo: Convert OVERRIDE -> override in various subdirectories of mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_APPS_JS_BINDINGS_GL_CONTEXT_H_ 5 #ifndef MOJO_APPS_JS_BINDINGS_GL_CONTEXT_H_
6 #define MOJO_APPS_JS_BINDINGS_GL_CONTEXT_H_ 6 #define MOJO_APPS_JS_BINDINGS_GL_CONTEXT_H_
7 7
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 static GLint GetUniformLocation(GLuint program, const std::string& name); 48 static GLint GetUniformLocation(GLuint program, const std::string& name);
49 static void ShaderSource(GLuint shader, const std::string& source); 49 static void ShaderSource(GLuint shader, const std::string& source);
50 static void UniformMatrix4fv(GLint location, GLboolean transpose, 50 static void UniformMatrix4fv(GLint location, GLboolean transpose,
51 const gin::ArrayBufferView& buffer); 51 const gin::ArrayBufferView& buffer);
52 static void VertexAttribPointer(GLuint index, GLint size, GLenum type, 52 static void VertexAttribPointer(GLuint index, GLint size, GLenum type,
53 GLboolean normalized, GLsizei stride, 53 GLboolean normalized, GLsizei stride,
54 uint64_t offset); 54 uint64_t offset);
55 55
56 private: 56 private:
57 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 57 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
58 v8::Isolate* isolate) OVERRIDE; 58 v8::Isolate* isolate) override;
59 59
60 explicit Context(v8::Isolate* isolate, 60 explicit Context(v8::Isolate* isolate,
61 mojo::Handle handle, 61 mojo::Handle handle,
62 v8::Handle<v8::Function> context_lost_callback); 62 v8::Handle<v8::Function> context_lost_callback);
63 virtual ~Context(); 63 virtual ~Context();
64 64
65 void ContextLost(); 65 void ContextLost();
66 static void ContextLostThunk(void* closure); 66 static void ContextLostThunk(void* closure);
67 67
68 base::WeakPtr<gin::Runner> runner_; 68 base::WeakPtr<gin::Runner> runner_;
69 v8::Persistent<v8::Function> context_lost_callback_; 69 v8::Persistent<v8::Function> context_lost_callback_;
70 MojoGLES2Context context_; 70 MojoGLES2Context context_;
71 }; 71 };
72 72
73 } // namespace gl 73 } // namespace gl
74 } // namespace js 74 } // namespace js
75 } // namespace mojo 75 } // namespace mojo
76 76
77 #endif // MOJO_APPS_JS_BINDINGS_GL_CONTEXT_H_ 77 #endif // MOJO_APPS_JS_BINDINGS_GL_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698