OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXAMPLES_SURFACES_APP_CHILD_GL_IMPL_H_ | 5 #ifndef EXAMPLES_SURFACES_APP_CHILD_GL_IMPL_H_ |
6 #define EXAMPLES_SURFACES_APP_CHILD_GL_IMPL_H_ | 6 #define EXAMPLES_SURFACES_APP_CHILD_GL_IMPL_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "cc/surfaces/surface_id.h" | 13 #include "cc/surfaces/surface_id.h" |
14 #include "cc/surfaces/surface_id_allocator.h" | 14 #include "cc/surfaces/surface_id_allocator.h" |
15 #include "examples/sample_app/spinning_cube.h" | 15 #include "examples/sample_app/spinning_cube.h" |
16 #include "examples/surfaces_app/child.mojom.h" | 16 #include "examples/surfaces_app/child.mojom.h" |
17 #include "mojo/public/c/gles2/gles2.h" | 17 #include "mojo/public/c/gles2/gles2.h" |
18 #include "mojo/public/cpp/bindings/string.h" | 18 #include "mojo/public/cpp/bindings/string.h" |
19 #include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h" | 19 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" |
20 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h" | 20 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" |
21 #include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h" | 21 #include "mojo/services/surfaces/public/interfaces/surfaces_service.mojom.h" |
22 #include "third_party/skia/include/core/SkColor.h" | 22 #include "third_party/skia/include/core/SkColor.h" |
23 #include "ui/gfx/size.h" | 23 #include "ui/gfx/size.h" |
24 | 24 |
25 namespace cc { | 25 namespace cc { |
26 class CompositorFrame; | 26 class CompositorFrame; |
27 } | 27 } |
28 | 28 |
29 namespace mojo { | 29 namespace mojo { |
30 | 30 |
31 class ApplicationConnection; | 31 class ApplicationConnection; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 base::hash_map<uint32_t, GLuint> id_to_tex_map_; | 67 base::hash_map<uint32_t, GLuint> id_to_tex_map_; |
68 base::WeakPtrFactory<ChildGLImpl> weak_factory_; | 68 base::WeakPtrFactory<ChildGLImpl> weak_factory_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(ChildGLImpl); | 70 DISALLOW_COPY_AND_ASSIGN(ChildGLImpl); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace examples | 73 } // namespace examples |
74 } // namespace mojo | 74 } // namespace mojo |
75 | 75 |
76 #endif // EXAMPLES_SURFACES_APP_CHILD_GL_IMPL_H_ | 76 #endif // EXAMPLES_SURFACES_APP_CHILD_GL_IMPL_H_ |
OLD | NEW |