| OLD | NEW |
| 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" |
| 11 #include "gin/handle.h" | 11 #include "gin/handle.h" |
| 12 #include "gin/public/wrapper_info.h" | 12 #include "gin/public/wrapper_info.h" |
| 13 #include "gin/runner.h" | 13 #include "gin/runner.h" |
| 14 #include "gin/wrappable.h" | 14 #include "gin/wrappable.h" |
| 15 #include "mojo/apps/js/bindings/handle.h" | 15 #include "mojo/bindings/js/handle.h" |
| 16 #include "mojo/public/gles2/gles2.h" | 16 #include "mojo/public/gles2/gles2.h" |
| 17 #include "v8/include/v8.h" | 17 #include "v8/include/v8.h" |
| 18 | 18 |
| 19 namespace gin { | 19 namespace gin { |
| 20 class Arguments; | 20 class Arguments; |
| 21 class ArrayBufferView; | 21 class ArrayBufferView; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace mojo { | 24 namespace mojo { |
| 25 namespace js { | 25 namespace js { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |