Index: ui/ozone/platform/dri/gbm_buffer.cc |
diff --git a/ui/ozone/platform/dri/gbm_buffer.cc b/ui/ozone/platform/dri/gbm_buffer.cc |
index 398064da27ec2e7dd90b2c49728aa941d968231b..83e6ae30fe5be810f4df0aac9219ae7391fa26bc 100644 |
--- a/ui/ozone/platform/dri/gbm_buffer.cc |
+++ b/ui/ozone/platform/dri/gbm_buffer.cc |
@@ -71,8 +71,11 @@ void* GbmPixmap::GetEGLClientBuffer() { |
} |
int GbmPixmap::GetDmaBufFd() { |
- NOTIMPLEMENTED(); |
- return -1; |
+ return gbm_bo_get_fd(buffer_->bo()); |
Pawel Osciak
2014/10/08 08:17:23
I think we should be closing the fd somewhere once
llandwerlin-old
2014/10/08 09:31:18
When we give the fd to LibVA, it is wrapped using
Pawel Osciak
2014/10/26 13:06:46
This ends up in DRM_IOCTL_PRIME_FD_TO_HANDLE and t
llandwerlin-old
2014/10/29 13:52:47
Right, thanks, we effectively leaking the fd here.
kalyank
2014/11/01 18:33:47
Now, this should be handled with the latest rebase
|
+} |
+ |
+uint32_t GbmPixmap::GetStride() { |
+ return gbm_bo_get_stride(buffer_->bo()); |
} |
} // namespace ui |