Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: ui/ozone/platform/drm/gpu/hardware_display_controller.h

Issue 2576263002: ozone: Allocate scanout buffer according to KMS modifiers (Closed)
Patch Set: ozone: Allocate scanout buffer according to KMS modifiers Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
131 // |flags| passed in. This lets a controller set additional flags to
132 // make sure the allocated buffer can be scanned out.
133 uint32_t GetFormatModifiers(uint32_t format,
134 uint64_t *modifiers, uint32_t count);
135
130 // Set the hardware cursor to show the contents of |surface|. 136 // Set the hardware cursor to show the contents of |surface|.
131 bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer); 137 bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer);
132 138
133 bool UnsetCursor(); 139 bool UnsetCursor();
134 140
135 // Moves the hardware cursor to |location|. 141 // Moves the hardware cursor to |location|.
136 bool MoveCursor(const gfx::Point& location); 142 bool MoveCursor(const gfx::Point& location);
137 143
138 void AddCrtc(std::unique_ptr<CrtcController> controller); 144 void AddCrtc(std::unique_ptr<CrtcController> controller);
139 std::unique_ptr<CrtcController> RemoveCrtc( 145 std::unique_ptr<CrtcController> RemoveCrtc(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 gfx::Point origin_; 177 gfx::Point origin_;
172 178
173 bool is_disabled_; 179 bool is_disabled_;
174 180
175 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); 181 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController);
176 }; 182 };
177 183
178 } // namespace ui 184 } // namespace ui
179 185
180 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ 186 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698