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_OVERLAY_CANDIDATES_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_OVERLAY_CANDIDATES_H_ |
6 #define UI_OZONE_PLATFORM_DRM_HOST_OVERLAY_CANDIDATES_H_ | 6 #define UI_OZONE_PLATFORM_DRM_HOST_OVERLAY_CANDIDATES_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 base::MRUCacheNullDeletor<bool>, | 92 base::MRUCacheNullDeletor<bool>, |
93 OverlayMap> cache_; | 93 OverlayMap> cache_; |
94 // List of all OverlayCheck_Params currently in use by various candidates. If | 94 // List of all OverlayCheck_Params currently in use by various candidates. If |
95 // the value is true, it means the correspnding candidate has been promoted to | 95 // the value is true, it means the correspnding candidate has been promoted to |
96 // use overlay. | 96 // use overlay. |
97 typedef std::map<OverlayCheck_Params, bool, OverlayCompare> CompatibleParams; | 97 typedef std::map<OverlayCheck_Params, bool, OverlayCompare> CompatibleParams; |
98 CompatibleParams in_use_compatible_params_; | 98 CompatibleParams in_use_compatible_params_; |
99 // Used to get best possible approximation of plane usage in GPU side. We use | 99 // Used to get best possible approximation of plane usage in GPU side. We use |
100 // this to make sure we don't handle more candidates than what we can support | 100 // this to make sure we don't handle more candidates than what we can support |
101 // in GPU side. | 101 // in GPU side. |
102 ScopedVector<HardwareDisplayPlaneProxy> hardware_plane_proxy_; | 102 std::vector<scoped_ptr<HardwareDisplayPlaneProxy>> hardware_plane_proxy_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(DrmOverlayCandidatesHost); | 104 DISALLOW_COPY_AND_ASSIGN(DrmOverlayCandidatesHost); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace ui | 107 } // namespace ui |
108 | 108 |
109 #endif // UI_OZONE_PLATFORM_DRM_HOST_OVERLAY_CANDIDATES_H_ | 109 #endif // UI_OZONE_PLATFORM_DRM_HOST_OVERLAY_CANDIDATES_H_ |
OLD | NEW |