| OLD | NEW |
| 1 // Copyright 2015 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 "ui/ozone/platform/drm/host/drm_overlay_candidates_host.h" | 5 #include "ui/ozone/platform/drm/host/drm_overlay_candidates_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "ui/gfx/geometry/rect_conversions.h" | 11 #include "ui/gfx/geometry/rect_conversions.h" |
| 12 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" | 12 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" |
| 13 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" | 13 #include "ui/ozone/platform/drm/host/drm_overlay_manager.h" |
| 14 #include "ui/ozone/platform/drm/host/drm_overlay_manager_core.h" | |
| 15 #include "ui/ozone/platform/drm/host/drm_window_host.h" | 14 #include "ui/ozone/platform/drm/host/drm_window_host.h" |
| 16 #include "ui/ozone/public/overlay_manager_ozone.h" | 15 #include "ui/ozone/public/overlay_manager_ozone.h" |
| 17 | 16 |
| 18 namespace ui { | 17 namespace ui { |
| 19 | 18 |
| 20 DrmOverlayCandidatesHost::DrmOverlayCandidatesHost( | 19 DrmOverlayCandidatesHost::DrmOverlayCandidatesHost( |
| 21 DrmOverlayManagerCore* manager_core, | 20 DrmOverlayManager* manager, |
| 22 gfx::AcceleratedWidget widget) | 21 gfx::AcceleratedWidget widget) |
| 23 : overlay_manager_(manager_core), widget_(widget) {} | 22 : overlay_manager_(manager), widget_(widget) {} |
| 24 | 23 |
| 25 DrmOverlayCandidatesHost::~DrmOverlayCandidatesHost() { | 24 DrmOverlayCandidatesHost::~DrmOverlayCandidatesHost() {} |
| 26 } | |
| 27 | 25 |
| 28 void DrmOverlayCandidatesHost::CheckOverlaySupport( | 26 void DrmOverlayCandidatesHost::CheckOverlaySupport( |
| 29 OverlaySurfaceCandidateList* candidates) { | 27 OverlaySurfaceCandidateList* candidates) { |
| 30 overlay_manager_->CheckOverlaySupport(candidates, widget_); | 28 overlay_manager_->CheckOverlaySupport(candidates, widget_); |
| 31 } | 29 } |
| 32 | 30 |
| 33 | 31 |
| 34 } // namespace ui | 32 } // namespace ui |
| OLD | NEW |