| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |