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

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: Don't limit h264_bitstream_buffer_unittest to x11 Created 6 years, 3 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());
+}
+
+uint32_t GbmPixmap::GetStride() {
+ return gbm_bo_get_stride(buffer_->bo());
}
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698