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

Unified Diff: ui/ozone/platform/drm/gpu/crtc_controller.h

Issue 2623963002: ozone: Allocate scanout buffers according to KMS modifiers. (Closed)
Patch Set: Remove unused modifier_. Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/crtc_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/crtc_controller.h
diff --git a/ui/ozone/platform/drm/gpu/crtc_controller.h b/ui/ozone/platform/drm/gpu/crtc_controller.h
index f332ce54da613cce9e2520be4ae71ff6669768d1..1bdae0385b0d5d294e775e8e6cda495bdb7d5724 100644
--- a/ui/ozone/platform/drm/gpu/crtc_controller.h
+++ b/ui/ozone/platform/drm/gpu/crtc_controller.h
@@ -58,6 +58,16 @@ class CrtcController : public base::SupportsWeakPtr<CrtcController> {
// |fourcc_format| format.
bool IsFormatSupported(uint32_t fourcc_format, uint32_t z_order) const;
+ // Returns a vector of format modifiers for the given fourcc format
+ // on this CRTCs primary plane. A format modifier describes the
+ // actual layout of the buffer, such as whether it's linear, tiled
+ // one way or another or maybe compressed. Except for generic
+ // modifiers such as DRM_FORMAT_MOD_NONE (linear), the modifier
+ // values are 64 bit values that we don't understand at this
+ // level. We pass the modifers to gbm_bo_create_with_modifiers() and
+ // gbm will pick a modifier as it allocates the bo.
+ std::vector<uint64_t> GetFormatModifiers(uint32_t fourcc_format);
+
// Called if the page flip event wasn't scheduled (ie: page flip fails). This
// will then signal the request such that the caller doesn't wait for the
// event forever.
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/crtc_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698