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

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

Issue 2055483002: gl: Add YVU_420 support to GLImageOzoneNativePixmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/Num/Count. Created 4 years, 6 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/gbm_buffer.h ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/gbm_buffer.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.cc b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
index 30e208b408f0e4a3d21b51aeafc471bdffcdb33e..ca9a55b986c60162305bf75b619df72e9046b642 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
@@ -58,6 +58,10 @@ bool GbmBuffer::AreFdsValid() const {
return true;
}
+size_t GbmBuffer::GetFdCount() const {
+ return fds_.size();
+}
+
int GbmBuffer::GetFd(size_t plane) const {
DCHECK_LT(plane, fds_.size());
return fds_[plane].get();
@@ -184,6 +188,10 @@ bool GbmPixmap::AreDmaBufFdsValid() const {
return buffer_->AreFdsValid();
}
+size_t GbmPixmap::GetDmaBufFdCount() const {
+ return buffer_->GetFdCount();
+}
+
int GbmPixmap::GetDmaBufFd(size_t plane) const {
return buffer_->GetFd(plane);
}
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.h ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698