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

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

Issue 1423793003: Optimize plane usage when primary is obscured by Overlay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check that primary and Overlay formats are same Created 5 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <xf86drmMode.h> 10 #include <xf86drmMode.h>
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 // Convert |crtc_id| into an index, returning -1 if the ID couldn't be found. 117 // Convert |crtc_id| into an index, returning -1 if the ID couldn't be found.
118 int LookupCrtcIndex(uint32_t crtc_id) const; 118 int LookupCrtcIndex(uint32_t crtc_id) const;
119 119
120 // Returns true if |plane| can support |overlay| and compatible with 120 // Returns true if |plane| can support |overlay| and compatible with
121 // |crtc_index|. 121 // |crtc_index|.
122 bool IsCompatible(HardwareDisplayPlane* plane, 122 bool IsCompatible(HardwareDisplayPlane* plane,
123 const OverlayPlane& overlay, 123 const OverlayPlane& overlay,
124 uint32_t crtc_index) const; 124 uint32_t crtc_index) const;
125 125
126 void ResetCurrentPlaneList(HardwareDisplayPlaneList* plane_list) const;
127
126 // Object containing the connection to the graphics device and wraps the API 128 // Object containing the connection to the graphics device and wraps the API
127 // calls to control it. Not owned. 129 // calls to control it. Not owned.
128 DrmDevice* drm_; 130 DrmDevice* drm_;
129 131
130 ScopedVector<HardwareDisplayPlane> planes_; 132 ScopedVector<HardwareDisplayPlane> planes_;
131 std::vector<uint32_t> crtcs_; 133 std::vector<uint32_t> crtcs_;
132 134
133 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); 135 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager);
134 }; 136 };
135 137
136 } // namespace ui 138 } // namespace ui
137 139
138 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 140 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698