Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_overlay_validator.h

Issue 1763273002: base: Remove OwningMRUCache in favor of scoped_ptrs in MRUCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698