Chromium Code Reviews| 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 // Add GBM usage flags to |flags| as needed for the |format| and | |
|
Daniele Castagna
2016/12/20 18:03:28
Does this comment need to be updated with the new
hoegsberg1
2016/12/22 23:05:21
Acknowledged.
| |
| 131 // |flags| passed in. This lets a controller set additional flags to | |
| 132 // make sure the allocated buffer can be scanned out. | |
| 133 std::vector<uint64_t> GetFormatModifiers(uint32_t format); | |
| 134 | |
| 130 // Set the hardware cursor to show the contents of |surface|. | 135 // Set the hardware cursor to show the contents of |surface|. |
| 131 bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer); | 136 bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer); |
| 132 | 137 |
| 133 bool UnsetCursor(); | 138 bool UnsetCursor(); |
| 134 | 139 |
| 135 // Moves the hardware cursor to |location|. | 140 // Moves the hardware cursor to |location|. |
| 136 bool MoveCursor(const gfx::Point& location); | 141 bool MoveCursor(const gfx::Point& location); |
| 137 | 142 |
| 138 void AddCrtc(std::unique_ptr<CrtcController> controller); | 143 void AddCrtc(std::unique_ptr<CrtcController> controller); |
| 139 std::unique_ptr<CrtcController> RemoveCrtc( | 144 std::unique_ptr<CrtcController> RemoveCrtc( |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 gfx::Point origin_; | 176 gfx::Point origin_; |
| 172 | 177 |
| 173 bool is_disabled_; | 178 bool is_disabled_; |
| 174 | 179 |
| 175 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); | 180 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); |
| 176 }; | 181 }; |
| 177 | 182 |
| 178 } // namespace ui | 183 } // namespace ui |
| 179 | 184 |
| 180 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ | 185 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |