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

Unified Diff: ui/ozone/platform/drm/gpu/drm_device.cc

Issue 2627193003: ozone: Allocate scanout buffers according to KMS modifiers. (Closed)
Patch Set: 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 | « ui/ozone/platform/drm/gpu/drm_device.h ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_device.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_device.cc b/ui/ozone/platform/drm/gpu/drm_device.cc
index 03ac08417b654c485fa12c3dcd8168074ce09862..82b937bcf70a23a3e70f53699e9e43ccbb8d63d4 100644
--- a/ui/ozone/platform/drm/gpu/drm_device.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device.cc
@@ -476,12 +476,14 @@ bool DrmDevice::AddFramebuffer2(uint32_t width,
uint32_t handles[4],
uint32_t strides[4],
uint32_t offsets[4],
+ uint64_t modifiers[4],
uint32_t* framebuffer,
uint32_t flags) {
DCHECK(file_.IsValid());
TRACE_EVENT1("drm", "DrmDevice::AddFramebuffer", "handle", handles[0]);
- return !drmModeAddFB2(file_.GetPlatformFile(), width, height, format, handles,
- strides, offsets, framebuffer, flags);
+ return !drmModeAddFB2WithModifiers(file_.GetPlatformFile(), width, height,
+ format, handles, strides, offsets,
+ modifiers, framebuffer, flags);
}
bool DrmDevice::RemoveFramebuffer(uint32_t framebuffer) {
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_device.h ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698