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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 uint32 scene_version, | 67 uint32 scene_version, |
68 mojo::RectPtr viewport); | 68 mojo::RectPtr viewport); |
69 | 69 |
70 // Removes the root scene. | 70 // Removes the root scene. |
71 // Destroys |renderer_state| if an error occurs. | 71 // Destroys |renderer_state| if an error occurs. |
72 void ClearRootScene(RendererState* renderer_state); | 72 void ClearRootScene(RendererState* renderer_state); |
73 | 73 |
74 // Performs a hit test. | 74 // Performs a hit test. |
75 void HitTest( | 75 void HitTest( |
76 RendererState* renderer_state, | 76 RendererState* renderer_state, |
77 mojo::PointPtr point, | 77 mojo::PointFPtr point, |
78 const mojo::gfx::composition::HitTester::HitTestCallback& callback); | 78 const mojo::gfx::composition::HitTester::HitTestCallback& callback); |
79 | 79 |
80 private: | 80 private: |
81 void OnSceneConnectionError(SceneState* scene_state); | 81 void OnSceneConnectionError(SceneState* scene_state); |
82 void DestroyScene(SceneState* scene_state); | 82 void DestroyScene(SceneState* scene_state); |
83 | 83 |
84 void OnRendererConnectionError(RendererState* renderer_state); | 84 void OnRendererConnectionError(RendererState* renderer_state); |
85 void DestroyRenderer(RendererState* renderer_state); | 85 void DestroyRenderer(RendererState* renderer_state); |
86 | 86 |
87 void InvalidateScene(SceneState* scene_state); | 87 void InvalidateScene(SceneState* scene_state); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 std::vector<RendererState*> renderers_; | 132 std::vector<RendererState*> renderers_; |
133 | 133 |
134 base::WeakPtrFactory<CompositorEngine> weak_factory_; | 134 base::WeakPtrFactory<CompositorEngine> weak_factory_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(CompositorEngine); | 136 DISALLOW_COPY_AND_ASSIGN(CompositorEngine); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace compositor | 139 } // namespace compositor |
140 | 140 |
141 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ | 141 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |