| 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_CONTROLLER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // called again before the page flip occurrs. | 120 // called again before the page flip occurrs. |
| 121 void SchedulePageFlip(const OverlayPlaneList& plane_list, | 121 void SchedulePageFlip(const OverlayPlaneList& plane_list, |
| 122 const PageFlipCallback& callback); | 122 const PageFlipCallback& callback); |
| 123 | 123 |
| 124 // Returns true if the page flip with the |plane_list| would succeed. This | 124 // Returns true if the page flip with the |plane_list| would succeed. This |
| 125 // doesn't change any state. | 125 // doesn't change any state. |
| 126 bool TestPageFlip(const OverlayPlaneList& plane_list); | 126 bool TestPageFlip(const OverlayPlaneList& plane_list); |
| 127 | 127 |
| 128 bool IsFormatSupported(uint32_t fourcc_format, uint32_t z_order) const; | 128 bool IsFormatSupported(uint32_t fourcc_format, uint32_t z_order) const; |
| 129 | 129 |
| 130 // Return the supported modifiers for |fourcc_format| for this |
| 131 // controller. |
| 132 std::vector<uint64_t> GetFormatModifiers(uint32_t fourcc_format); |
| 133 |
| 130 // Set the hardware cursor to show the contents of |surface|. | 134 // Set the hardware cursor to show the contents of |surface|. |
| 131 bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer); | 135 bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer); |
| 132 | 136 |
| 133 bool UnsetCursor(); | 137 bool UnsetCursor(); |
| 134 | 138 |
| 135 // Moves the hardware cursor to |location|. | 139 // Moves the hardware cursor to |location|. |
| 136 bool MoveCursor(const gfx::Point& location); | 140 bool MoveCursor(const gfx::Point& location); |
| 137 | 141 |
| 138 void AddCrtc(std::unique_ptr<CrtcController> controller); | 142 void AddCrtc(std::unique_ptr<CrtcController> controller); |
| 139 std::unique_ptr<CrtcController> RemoveCrtc( | 143 std::unique_ptr<CrtcController> RemoveCrtc( |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 gfx::Point origin_; | 175 gfx::Point origin_; |
| 172 | 176 |
| 173 bool is_disabled_; | 177 bool is_disabled_; |
| 174 | 178 |
| 175 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); | 179 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); |
| 176 }; | 180 }; |
| 177 | 181 |
| 178 } // namespace ui | 182 } // namespace ui |
| 179 | 183 |
| 180 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ | 184 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |