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

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

Issue 2178563002: gpu: Take surface handle into account when importing buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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_thread.h ('k') | ui/ozone/platform/drm/gpu/drm_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_thread.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index 995373eb6ba6ae3840eb22c36b1a83c441b2b58e..6e6f0b28de7d38db74a35a7b4928c1055a4407f1 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -110,14 +110,15 @@ void DrmThread::CreateBuffer(gfx::AcceleratedWidget widget,
*buffer = GbmBuffer::CreateBuffer(gbm, format, size, usage);
}
-void DrmThread::CreateBufferFromFds(const gfx::Size& size,
+void DrmThread::CreateBufferFromFds(gfx::AcceleratedWidget widget,
+ const gfx::Size& size,
gfx::BufferFormat format,
std::vector<base::ScopedFD>&& fds,
std::vector<int> strides,
std::vector<int> offsets,
scoped_refptr<GbmBuffer>* buffer) {
scoped_refptr<GbmDevice> gbm =
- static_cast<GbmDevice*>(device_manager_->GetPrimaryDrmDevice().get());
+ static_cast<GbmDevice*>(device_manager_->GetDrmDevice(widget).get());
DCHECK(gbm);
*buffer = GbmBuffer::CreateBufferFromFds(gbm, format, size, std::move(fds),
strides, offsets);
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.h ('k') | ui/ozone/platform/drm/gpu/drm_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698