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_GPU_DRM_OVERLAY_VALIDATOR_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_OVERLAY_VALIDATOR_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_OVERLAY_VALIDATOR_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_OVERLAY_VALIDATOR_H_ |
7 | 7 |
8 #include "base/containers/mru_cache.h" | 8 #include "base/containers/mru_cache.h" |
9 #include "ui/ozone/platform/drm/gpu/overlay_plane.h" | 9 #include "ui/ozone/platform/drm/gpu/overlay_plane.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 | 12 |
13 class DrmDevice; | |
14 class DrmWindow; | 13 class DrmWindow; |
15 class HardwareDisplayController; | |
16 class ScanoutBufferGenerator; | 14 class ScanoutBufferGenerator; |
17 struct OverlayCheck_Params; | 15 struct OverlayCheck_Params; |
18 | 16 |
19 class DrmOverlayValidator { | 17 class DrmOverlayValidator { |
20 public: | 18 public: |
21 DrmOverlayValidator(DrmWindow* window, | 19 DrmOverlayValidator(DrmWindow* window, |
22 ScanoutBufferGenerator* buffer_generator); | 20 ScanoutBufferGenerator* buffer_generator); |
23 ~DrmOverlayValidator(); | 21 ~DrmOverlayValidator(); |
24 | 22 |
25 // Tests if configurations |params| are compatible with |window_| and finds | 23 // Tests if configurations |params| are compatible with |window_| and finds |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 65 |
68 // List of all configurations which have been validated. | 66 // List of all configurations which have been validated. |
69 base::MRUCache<OverlayPlaneList, OverlayHintsList> overlay_hints_cache_; | 67 base::MRUCache<OverlayPlaneList, OverlayHintsList> overlay_hints_cache_; |
70 | 68 |
71 DISALLOW_COPY_AND_ASSIGN(DrmOverlayValidator); | 69 DISALLOW_COPY_AND_ASSIGN(DrmOverlayValidator); |
72 }; | 70 }; |
73 | 71 |
74 } // namespace ui | 72 } // namespace ui |
75 | 73 |
76 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_OVERLAY_VALIDATOR_H_ | 74 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_OVERLAY_VALIDATOR_H_ |
OLD | NEW |