| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Commit the plane states in |plane_list|. | 91 // Commit the plane states in |plane_list|. |
| 92 virtual bool Commit(HardwareDisplayPlaneList* plane_list, | 92 virtual bool Commit(HardwareDisplayPlaneList* plane_list, |
| 93 bool test_only) = 0; | 93 bool test_only) = 0; |
| 94 | 94 |
| 95 const ScopedVector<HardwareDisplayPlane>& planes() { return planes_; } | 95 const ScopedVector<HardwareDisplayPlane>& planes() { return planes_; } |
| 96 | 96 |
| 97 std::vector<uint32_t> GetCompatibleHardwarePlaneIds(const OverlayPlane& plane, | 97 std::vector<uint32_t> GetCompatibleHardwarePlaneIds(const OverlayPlane& plane, |
| 98 uint32_t crtc_id) const; | 98 uint32_t crtc_id) const; |
| 99 | 99 |
| 100 bool IsFormatSupported(uint32_t fourcc_format, |
| 101 uint32_t z_order, |
| 102 uint32_t crtc_id) const; |
| 103 |
| 100 protected: | 104 protected: |
| 101 virtual bool SetPlaneData(HardwareDisplayPlaneList* plane_list, | 105 virtual bool SetPlaneData(HardwareDisplayPlaneList* plane_list, |
| 102 HardwareDisplayPlane* hw_plane, | 106 HardwareDisplayPlane* hw_plane, |
| 103 const OverlayPlane& overlay, | 107 const OverlayPlane& overlay, |
| 104 uint32_t crtc_id, | 108 uint32_t crtc_id, |
| 105 const gfx::Rect& src_rect, | 109 const gfx::Rect& src_rect, |
| 106 CrtcController* crtc) = 0; | 110 CrtcController* crtc) = 0; |
| 107 | 111 |
| 108 virtual scoped_ptr<HardwareDisplayPlane> CreatePlane(uint32_t plane_id, | 112 virtual scoped_ptr<HardwareDisplayPlane> CreatePlane(uint32_t plane_id, |
| 109 uint32_t possible_crtcs); | 113 uint32_t possible_crtcs); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 131 | 135 |
| 132 ScopedVector<HardwareDisplayPlane> planes_; | 136 ScopedVector<HardwareDisplayPlane> planes_; |
| 133 std::vector<uint32_t> crtcs_; | 137 std::vector<uint32_t> crtcs_; |
| 134 | 138 |
| 135 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); | 139 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); |
| 136 }; | 140 }; |
| 137 | 141 |
| 138 } // namespace ui | 142 } // namespace ui |
| 139 | 143 |
| 140 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ | 144 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ |
| OLD | NEW |