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 ba5c539c55bbced4524c7b76a66970e1c0155d07..7a267b5869e7592611537e1e6e48b87eb14c9310 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_device.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_device.cc |
@@ -351,6 +351,20 @@ bool DrmDevice::AddFramebuffer(uint32_t width, |
stride, handle, framebuffer); |
} |
+bool DrmDevice::AddFramebuffer2(uint32_t width, |
+ uint32_t height, |
+ uint32_t format, |
+ uint32_t handles[4], |
+ uint32_t strides[4], |
+ uint32_t offsets[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, 0); |
+} |
+ |
bool DrmDevice::RemoveFramebuffer(uint32_t framebuffer) { |
DCHECK(file_.IsValid()); |
TRACE_EVENT1("drm", "DrmDevice::RemoveFramebuffer", "framebuffer", |