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

Unified Diff: ui/ozone/platform/dri/gbm_buffer.cc

Issue 490233002: VaapiVideoAccelerator: make Vaapi accelerator work with ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing modifications in video accelerators Created 6 years, 2 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/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

Powered by Google App Engine
This is Rietveld 408576698