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 COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ | 5 #ifndef COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ | 6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 namespace ui { | 42 namespace ui { |
43 class CursorLoader; | 43 class CursorLoader; |
44 class PlatformWindow; | 44 class PlatformWindow; |
45 struct TextInputState; | 45 struct TextInputState; |
46 } // namespace ui | 46 } // namespace ui |
47 | 47 |
48 namespace mus { | 48 namespace mus { |
49 | 49 |
50 class GpuState; | 50 class GpuState; |
51 class SurfacesState; | 51 class SurfacesState; |
52 class TopLevelDisplayClient; | 52 class DisplayCompositor; |
53 | 53 |
54 namespace ws { | 54 namespace ws { |
55 | 55 |
56 class EventDispatcher; | 56 class EventDispatcher; |
57 class PlatformDisplayFactory; | 57 class PlatformDisplayFactory; |
58 class ServerWindow; | 58 class ServerWindow; |
59 | 59 |
60 // PlatformDisplay is used to connect the root ServerWindow to a display. | 60 // PlatformDisplay is used to connect the root ServerWindow to a display. |
61 class PlatformDisplay { | 61 class PlatformDisplay { |
62 public: | 62 public: |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 shell::Connector* connector_; | 160 shell::Connector* connector_; |
161 scoped_refptr<GpuState> gpu_state_; | 161 scoped_refptr<GpuState> gpu_state_; |
162 scoped_refptr<SurfacesState> surfaces_state_; | 162 scoped_refptr<SurfacesState> surfaces_state_; |
163 PlatformDisplayDelegate* delegate_; | 163 PlatformDisplayDelegate* delegate_; |
164 | 164 |
165 mojom::ViewportMetrics metrics_; | 165 mojom::ViewportMetrics metrics_; |
166 gfx::Rect dirty_rect_; | 166 gfx::Rect dirty_rect_; |
167 base::Timer draw_timer_; | 167 base::Timer draw_timer_; |
168 bool frame_pending_; | 168 bool frame_pending_; |
169 | 169 |
170 std::unique_ptr<TopLevelDisplayClient> top_level_display_client_; | 170 std::unique_ptr<DisplayCompositor> display_compositor_; |
171 std::unique_ptr<ui::PlatformWindow> platform_window_; | 171 std::unique_ptr<ui::PlatformWindow> platform_window_; |
172 | 172 |
173 #if !defined(OS_ANDROID) | 173 #if !defined(OS_ANDROID) |
174 std::unique_ptr<ui::CursorLoader> cursor_loader_; | 174 std::unique_ptr<ui::CursorLoader> cursor_loader_; |
175 #endif | 175 #endif |
176 | 176 |
177 base::WeakPtrFactory<DefaultPlatformDisplay> weak_factory_; | 177 base::WeakPtrFactory<DefaultPlatformDisplay> weak_factory_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); | 179 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); |
180 }; | 180 }; |
181 | 181 |
182 } // namespace ws | 182 } // namespace ws |
183 | 183 |
184 } // namespace mus | 184 } // namespace mus |
185 | 185 |
186 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ | 186 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
OLD | NEW |