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 ebc89da636415fb4a35043f67c69ac9662679d23..1e73c56bc6a468aebf942433bf5638178681eba1 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc |
@@ -111,13 +111,14 @@ void DrmThread::CreateBuffer(gfx::AcceleratedWidget widget, |
} |
void DrmThread::CreateBufferFromFds( |
+ gfx::AcceleratedWidget widget, |
const gfx::Size& size, |
gfx::BufferFormat format, |
std::vector<base::ScopedFD>&& fds, |
const std::vector<gfx::NativePixmapPlane>& planes, |
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), planes); |