| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 97 } |
| 98 | 98 |
| 99 // Returns all formats which can be scanned out by this PlaneManager. Use | 99 // Returns all formats which can be scanned out by this PlaneManager. Use |
| 100 // IsFormatSupported to find if a given format is supported on a particular | 100 // IsFormatSupported to find if a given format is supported on a particular |
| 101 // plane for a given crtc. | 101 // plane for a given crtc. |
| 102 const std::vector<uint32_t>& GetSupportedFormats() const; | 102 const std::vector<uint32_t>& GetSupportedFormats() const; |
| 103 bool IsFormatSupported(uint32_t fourcc_format, | 103 bool IsFormatSupported(uint32_t fourcc_format, |
| 104 uint32_t z_order, | 104 uint32_t z_order, |
| 105 uint32_t crtc_id) const; | 105 uint32_t crtc_id) const; |
| 106 | 106 |
| 107 std::vector<uint64_t> GetFormatModifiers(uint32_t crtc_id, uint32_t format); |
| 108 |
| 107 protected: | 109 protected: |
| 108 virtual bool SetPlaneData(HardwareDisplayPlaneList* plane_list, | 110 virtual bool SetPlaneData(HardwareDisplayPlaneList* plane_list, |
| 109 HardwareDisplayPlane* hw_plane, | 111 HardwareDisplayPlane* hw_plane, |
| 110 const OverlayPlane& overlay, | 112 const OverlayPlane& overlay, |
| 111 uint32_t crtc_id, | 113 uint32_t crtc_id, |
| 112 const gfx::Rect& src_rect, | 114 const gfx::Rect& src_rect, |
| 113 CrtcController* crtc) = 0; | 115 CrtcController* crtc) = 0; |
| 114 | 116 |
| 115 virtual std::unique_ptr<HardwareDisplayPlane> CreatePlane( | 117 virtual std::unique_ptr<HardwareDisplayPlane> CreatePlane( |
| 116 uint32_t plane_id, | 118 uint32_t plane_id, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 143 std::vector<std::unique_ptr<HardwareDisplayPlane>> planes_; | 145 std::vector<std::unique_ptr<HardwareDisplayPlane>> planes_; |
| 144 std::vector<uint32_t> crtcs_; | 146 std::vector<uint32_t> crtcs_; |
| 145 std::vector<uint32_t> supported_formats_; | 147 std::vector<uint32_t> supported_formats_; |
| 146 | 148 |
| 147 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); | 149 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 } // namespace ui | 152 } // namespace ui |
| 151 | 153 |
| 152 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ | 154 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ |
| OLD | NEW |