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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 std::vector<uint32_t> GetCompatibleHardwarePlaneIds( | 128 std::vector<uint32_t> GetCompatibleHardwarePlaneIds( |
129 const OverlayPlane& plane) const; | 129 const OverlayPlane& plane) const; |
130 | 130 |
| 131 bool IsFormatSupported(uint32_t fourcc_format, uint32_t z_order) const; |
| 132 |
131 // Set the hardware cursor to show the contents of |surface|. | 133 // Set the hardware cursor to show the contents of |surface|. |
132 bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer); | 134 bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer); |
133 | 135 |
134 bool UnsetCursor(); | 136 bool UnsetCursor(); |
135 | 137 |
136 // Moves the hardware cursor to |location|. | 138 // Moves the hardware cursor to |location|. |
137 bool MoveCursor(const gfx::Point& location); | 139 bool MoveCursor(const gfx::Point& location); |
138 | 140 |
139 void AddCrtc(scoped_ptr<CrtcController> controller); | 141 void AddCrtc(scoped_ptr<CrtcController> controller); |
140 scoped_ptr<CrtcController> RemoveCrtc(const scoped_refptr<DrmDevice>& drm, | 142 scoped_ptr<CrtcController> RemoveCrtc(const scoped_refptr<DrmDevice>& drm, |
(...skipping 30 matching lines...) Expand all Loading... |
171 gfx::Point origin_; | 173 gfx::Point origin_; |
172 | 174 |
173 bool is_disabled_; | 175 bool is_disabled_; |
174 | 176 |
175 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); | 177 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); |
176 }; | 178 }; |
177 | 179 |
178 } // namespace ui | 180 } // namespace ui |
179 | 181 |
180 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ | 182 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ |
OLD | NEW |