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

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

Issue 667293002: [Ozone-GBM] Use dma_buf with surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ui/ozone/platform/dri/gbm_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/gbm_surface_factory.cc
diff --git a/ui/ozone/platform/dri/gbm_surface_factory.cc b/ui/ozone/platform/dri/gbm_surface_factory.cc
index e04ae8e455bdd739700e794b88903c979003f7a0..bbb2c407426f4f6f935f1ac6ecd0c3a0967128ba 100644
--- a/ui/ozone/platform/dri/gbm_surface_factory.cc
+++ b/ui/ozone/platform/dri/gbm_surface_factory.cc
@@ -176,7 +176,11 @@ scoped_refptr<ui::NativePixmap> GbmSurfaceFactory::CreateNativePixmap(
if (!buffer.get())
return NULL;
- return scoped_refptr<GbmPixmap>(new GbmPixmap(buffer));
+ scoped_refptr<GbmPixmap> pixmap(new GbmPixmap(buffer));
+ if (!pixmap->Initialize(drm_))
+ return NULL;
+
+ return pixmap;
}
OverlayCandidatesOzone* GbmSurfaceFactory::GetOverlayCandidates(
« no previous file with comments | « ui/ozone/platform/dri/gbm_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698