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 #include "ui/ozone/platform/drm/gpu/screen_manager.h" | 5 #include "ui/ozone/platform/drm/gpu/screen_manager.h" |
6 | 6 |
7 #include <xf86drmMode.h> | 7 #include <xf86drmMode.h> |
8 | 8 |
9 #include "third_party/skia/include/core/SkCanvas.h" | 9 #include "third_party/skia/include/core/SkCanvas.h" |
10 #include "ui/gfx/geometry/point.h" | 10 #include "ui/gfx/geometry/point.h" |
11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
12 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/ozone/platform/drm/common/drm_util.h" |
13 #include "ui/ozone/platform/drm/gpu/crtc_controller.h" | 14 #include "ui/ozone/platform/drm/gpu/crtc_controller.h" |
14 #include "ui/ozone/platform/drm/gpu/drm_console_buffer.h" | 15 #include "ui/ozone/platform/drm/gpu/drm_console_buffer.h" |
15 #include "ui/ozone/platform/drm/gpu/drm_device.h" | 16 #include "ui/ozone/platform/drm/gpu/drm_device.h" |
16 #include "ui/ozone/platform/drm/gpu/drm_util.h" | |
17 #include "ui/ozone/platform/drm/gpu/drm_window.h" | 17 #include "ui/ozone/platform/drm/gpu/drm_window.h" |
18 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h" | 18 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h" |
19 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" | 19 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" |
20 | 20 |
21 namespace ui { | 21 namespace ui { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Copies the contents of the saved framebuffer from the CRTCs in |controller| | 25 // Copies the contents of the saved framebuffer from the CRTCs in |controller| |
26 // to the new modeset buffer |buffer|. | 26 // to the new modeset buffer |buffer|. |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 DrmWindow* ScreenManager::FindWindowAt(const gfx::Rect& bounds) const { | 355 DrmWindow* ScreenManager::FindWindowAt(const gfx::Rect& bounds) const { |
356 for (auto pair : window_map_) { | 356 for (auto pair : window_map_) { |
357 if (pair.second->bounds() == bounds) | 357 if (pair.second->bounds() == bounds) |
358 return pair.second; | 358 return pair.second; |
359 } | 359 } |
360 | 360 |
361 return nullptr; | 361 return nullptr; |
362 } | 362 } |
363 | 363 |
364 } // namespace ui | 364 } // namespace ui |
OLD | NEW |