| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/ozone/public/overlay_manager_ozone.h" | 9 #include "ui/ozone/public/overlay_manager_ozone.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 | 12 |
| 13 class DrmGpuPlatformSupportHost; |
| 14 |
| 13 class DrmOverlayManager : public OverlayManagerOzone { | 15 class DrmOverlayManager : public OverlayManagerOzone { |
| 14 public: | 16 public: |
| 15 DrmOverlayManager(bool allow_surfaceless); | 17 DrmOverlayManager(bool allow_surfaceless, |
| 18 DrmGpuPlatformSupportHost* platform_support_host); |
| 16 ~DrmOverlayManager() override; | 19 ~DrmOverlayManager() override; |
| 17 | 20 |
| 18 // OverlayManagerOzone: | 21 // OverlayManagerOzone: |
| 19 OverlayCandidatesOzone* GetOverlayCandidates( | 22 OverlayCandidatesOzone* GetOverlayCandidates( |
| 20 gfx::AcceleratedWidget w) override; | 23 gfx::AcceleratedWidget w) override; |
| 21 bool CanShowPrimaryPlaneAsOverlay() override; | 24 bool CanShowPrimaryPlaneAsOverlay() override; |
| 22 | 25 |
| 23 private: | 26 private: |
| 27 DrmGpuPlatformSupportHost* platform_support_host_; |
| 24 bool allow_surfaceless_; | 28 bool allow_surfaceless_; |
| 25 | 29 bool is_supported_; |
| 26 scoped_ptr<OverlayCandidatesOzone> candidates_; | |
| 27 | 30 |
| 28 DISALLOW_COPY_AND_ASSIGN(DrmOverlayManager); | 31 DISALLOW_COPY_AND_ASSIGN(DrmOverlayManager); |
| 29 }; | 32 }; |
| 30 | 33 |
| 31 } // namespace ui | 34 } // namespace ui |
| 32 | 35 |
| 33 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ | 36 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ |
| OLD | NEW |