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

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

Issue 2039813002: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension Created 4 years, 6 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
Index: ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc b/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
index 1bc85ca8698a398bea085934f4248fdb3f8ab015..b44c83ed1d820fddea49c818bbd1a800e4413b9a 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
@@ -44,14 +44,13 @@ scoped_refptr<GbmBuffer> DrmThreadProxy::CreateBufferFromFds(
const gfx::Size& size,
gfx::BufferFormat format,
std::vector<base::ScopedFD>&& fds,
- std::vector<int> strides,
- std::vector<int> offsets) {
+ std::vector<gfx::GbmBufferPlane>&& planes) {
scoped_refptr<GbmBuffer> buffer;
- PostSyncTask(
- drm_thread_.task_runner(),
- base::Bind(&DrmThread::CreateBufferFromFds,
- base::Unretained(&drm_thread_), size, format,
- base::Passed(std::move(fds)), strides, offsets, &buffer));
+ PostSyncTask(drm_thread_.task_runner(),
+ base::Bind(&DrmThread::CreateBufferFromFds,
+ base::Unretained(&drm_thread_), size, format,
+ base::Passed(std::move(fds)),
+ base::Passed(std::move(planes)), &buffer));
return buffer;
}

Powered by Google App Engine
This is Rietveld 408576698