| 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 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // bandwidth for |plane_list| and cache the value. | 63 // bandwidth for |plane_list| and cache the value. |
| 64 void UpdateOverlayHintsCache( | 64 void UpdateOverlayHintsCache( |
| 65 const scoped_refptr<DrmDevice>& drm, | 65 const scoped_refptr<DrmDevice>& drm, |
| 66 const OverlayPlaneList& plane_list, | 66 const OverlayPlaneList& plane_list, |
| 67 std::vector<scoped_refptr<ScanoutBuffer>>* reusable_buffers); | 67 std::vector<scoped_refptr<ScanoutBuffer>>* reusable_buffers); |
| 68 | 68 |
| 69 DrmWindow* window_; // Not owned. | 69 DrmWindow* window_; // Not owned. |
| 70 ScanoutBufferGenerator* buffer_generator_; // Not owned. | 70 ScanoutBufferGenerator* buffer_generator_; // Not owned. |
| 71 | 71 |
| 72 // List of all configurations which have been validated. | 72 // List of all configurations which have been validated. |
| 73 base::MRUCacheBase<OverlayPlaneList, | 73 base::MRUCache<OverlayPlaneList, OverlayHintsList> overlay_hints_cache_; |
| 74 OverlayHintsList, | |
| 75 std::less<OverlayPlaneList>, | |
| 76 base::MRUCacheNullDeletor<OverlayHintsList>> | |
| 77 overlay_hints_cache_; | |
| 78 | 74 |
| 79 DISALLOW_COPY_AND_ASSIGN(DrmOverlayValidator); | 75 DISALLOW_COPY_AND_ASSIGN(DrmOverlayValidator); |
| 80 }; | 76 }; |
| 81 | 77 |
| 82 } // namespace ui | 78 } // namespace ui |
| 83 | 79 |
| 84 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_OVERLAY_VALIDATOR_H_ | 80 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_OVERLAY_VALIDATOR_H_ |
| OLD | NEW |