OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ |
6 #define SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ | 6 #define SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ |
7 | 7 |
8 #include <unordered_map> | 8 #include <unordered_map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // COMPOSITOR REQUESTS | 28 // COMPOSITOR REQUESTS |
29 | 29 |
30 // Registers a scene. | 30 // Registers a scene. |
31 mojo::gfx::composition::SceneTokenPtr CreateScene( | 31 mojo::gfx::composition::SceneTokenPtr CreateScene( |
32 mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene_request, | 32 mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene_request, |
33 const mojo::String& label); | 33 const mojo::String& label); |
34 | 34 |
35 // Creates a scene graph renderer. | 35 // Creates a scene graph renderer. |
36 void CreateRenderer( | 36 void CreateRenderer( |
37 mojo::ContextProviderPtr context_provider, | 37 mojo::InterfaceHandle<mojo::ContextProvider> context_provider, |
38 mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request, | 38 mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request, |
39 const mojo::String& label); | 39 const mojo::String& label); |
40 | 40 |
41 // SCENE REQUESTS | 41 // SCENE REQUESTS |
42 | 42 |
43 // Sets the scene listener. | 43 // Sets the scene listener. |
44 void SetListener(SceneState* scene_state, | 44 void SetListener(SceneState* scene_state, |
45 mojo::gfx::composition::SceneListenerPtr listener); | 45 mojo::gfx::composition::SceneListenerPtr listener); |
46 | 46 |
47 // Updates a scene. | 47 // Updates a scene. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 std::vector<RendererState*> renderers_; | 128 std::vector<RendererState*> renderers_; |
129 | 129 |
130 base::WeakPtrFactory<CompositorEngine> weak_factory_; | 130 base::WeakPtrFactory<CompositorEngine> weak_factory_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(CompositorEngine); | 132 DISALLOW_COPY_AND_ASSIGN(CompositorEngine); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace compositor | 135 } // namespace compositor |
136 | 136 |
137 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ | 137 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |