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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 ad4979c45cb28bd17cfa94cd80a9d8ee8e9656e5..2c1203bd6b851dfc1a17e3d79774fe1df99dcdd1 100644
--- a/ui/ozone/platform/drm/gpu/drm_device.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device.cc
@@ -299,17 +299,18 @@ ScopedDrmConnectorPtr DrmDevice::GetConnector(uint32_t connector_id) {
drmModeGetConnector(file_.GetPlatformFile(), connector_id));
}
-bool DrmDevice::AddFramebuffer(uint32_t width,
- uint32_t height,
- uint8_t depth,
- uint8_t bpp,
- uint32_t stride,
- uint32_t handle,
- uint32_t* 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", handle);
- return !drmModeAddFB(file_.GetPlatformFile(), width, height, depth, bpp,
- stride, handle, framebuffer);
+ TRACE_EVENT1("drm", "DrmDevice::AddFramebuffer", "handle", handles[0]);
+ return !drmModeAddFB2(file_.GetPlatformFile(), width, height, format, handles,
+ strides, offsets, framebuffer, 0);
kalyank 2015/11/06 17:30:26 we should set whatever is passed in |flags| here a
william.xie1 2015/11/06 18:24:02 Done.
}
bool DrmDevice::RemoveFramebuffer(uint32_t framebuffer) {

Powered by Google App Engine
This is Rietveld 408576698