| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ | 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ |
| 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ | 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "services/ui/display/viewport_metrics.h" | 11 #include "services/ui/display/viewport_metrics.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 class DisplayCompositor; | 15 class DisplayCompositor; |
| 16 class GpuState; | |
| 17 | 16 |
| 18 namespace ws { | 17 namespace ws { |
| 19 | 18 |
| 19 class ServerWindow; |
| 20 |
| 20 struct PlatformDisplayInitParams { | 21 struct PlatformDisplayInitParams { |
| 21 PlatformDisplayInitParams(); | 22 PlatformDisplayInitParams(); |
| 23 PlatformDisplayInitParams(const PlatformDisplayInitParams& other); |
| 22 ~PlatformDisplayInitParams(); | 24 ~PlatformDisplayInitParams(); |
| 23 | 25 |
| 24 scoped_refptr<DisplayCompositor> display_compositor; | 26 scoped_refptr<DisplayCompositor> display_compositor; |
| 25 | 27 |
| 26 int64_t display_id; | 28 int64_t display_id; |
| 29 ServerWindow* root_window = nullptr; |
| 27 display::ViewportMetrics metrics; | 30 display::ViewportMetrics metrics; |
| 28 }; | 31 }; |
| 29 | 32 |
| 30 } // namespace ws | 33 } // namespace ws |
| 31 } // namespace ui | 34 } // namespace ui |
| 32 | 35 |
| 33 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ | 36 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ |
| OLD | NEW |