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 #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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 bool CanHandleCandidate( | 48 bool CanHandleCandidate( |
49 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate, | 49 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate, |
50 gfx::AcceleratedWidget widget) const; | 50 gfx::AcceleratedWidget widget) const; |
51 | 51 |
52 bool is_supported_; | 52 bool is_supported_; |
53 GpuThreadAdapter* proxy_; // Not owned. | 53 GpuThreadAdapter* proxy_; // Not owned. |
54 DrmWindowHostManager* window_manager_; // Not owned. | 54 DrmWindowHostManager* window_manager_; // Not owned. |
55 | 55 |
56 // List of all OverlayCheck_Params which have been validated in GPU side. | 56 // List of all OverlayCheck_Params which have been validated in GPU side. |
57 // Value is set to true if we are waiting for validation results from GPU. | 57 // Value is set to true if we are waiting for validation results from GPU. |
58 base::MRUCacheBase<std::vector<OverlayCheck_Params>, | 58 base::MRUCache<std::vector<OverlayCheck_Params>, bool> cache_; |
59 bool, | |
60 std::less<std::vector<OverlayCheck_Params>>, | |
61 base::MRUCacheNullDeletor<bool>> | |
62 cache_; | |
63 | 59 |
64 DISALLOW_COPY_AND_ASSIGN(DrmOverlayManager); | 60 DISALLOW_COPY_AND_ASSIGN(DrmOverlayManager); |
65 }; | 61 }; |
66 | 62 |
67 } // namespace ui | 63 } // namespace ui |
68 | 64 |
69 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ | 65 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ |
OLD | NEW |