| 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 #include "services/ui/ws/platform_screen_impl_ozone.h" | 5 #include "services/ui/display/platform_screen_impl_ozone.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
| 11 #include "ui/display/types/display_constants.h" | 11 #include "ui/display/types/display_constants.h" |
| 12 #include "ui/display/types/display_snapshot.h" | 12 #include "ui/display/types/display_snapshot.h" |
| 13 #include "ui/display/types/native_display_delegate.h" | 13 #include "ui/display/types/native_display_delegate.h" |
| 14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 #include "ui/ozone/public/ozone_platform.h" | 15 #include "ui/ozone/public/ozone_platform.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 | 18 |
| 19 namespace ws { | 19 namespace display { |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // TODO(rjkroege): Remove this code once ozone headless has the same | 22 // TODO(rjkroege): Remove this code once ozone headless has the same |
| 23 // display creation semantics as ozone drm. | 23 // display creation semantics as ozone drm. |
| 24 // Some ozone platforms do not configure physical displays and so do not | 24 // Some ozone platforms do not configure physical displays and so do not |
| 25 // callback into this class via the implementation of NativeDisplayObserver. | 25 // callback into this class via the implementation of NativeDisplayObserver. |
| 26 // FixedSizeScreenConfiguration() short-circuits the implementation of display | 26 // FixedSizeScreenConfiguration() short-circuits the implementation of display |
| 27 // configuration in this case by calling the |callback| provided to | 27 // configuration in this case by calling the |callback| provided to |
| 28 // ConfigurePhysicalDisplay() with a hard-coded |id| and |bounds|. | 28 // ConfigurePhysicalDisplay() with a hard-coded |id| and |bounds|. |
| 29 void FixedSizeScreenConfiguration( | 29 void FixedSizeScreenConfiguration( |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 callback_.Reset(); | 85 callback_.Reset(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void PlatformScreenImplOzone::OnDisplayModeChangeFailed( | 88 void PlatformScreenImplOzone::OnDisplayModeChangeFailed( |
| 89 const ui::DisplayConfigurator::DisplayStateList& displays, | 89 const ui::DisplayConfigurator::DisplayStateList& displays, |
| 90 MultipleDisplayState failed_new_state) { | 90 MultipleDisplayState failed_new_state) { |
| 91 LOG(ERROR) << "OnDisplayModeChangeFailed from DisplayConfigurator"; | 91 LOG(ERROR) << "OnDisplayModeChangeFailed from DisplayConfigurator"; |
| 92 callback_.Reset(); | 92 callback_.Reset(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace ws | 95 } // namespace display |
| 96 } // namespace ui | 96 } // namespace ui |
| OLD | NEW |