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

Unified Diff: components/exo/wayland/clients/client_base.cc

Issue 2804643003: exo: advertise supported formats to linux_dmabuf clients
Patch Set: indent fixup Created 3 years, 8 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 | « components/exo/wayland/clients/client_base.h ('k') | components/exo/wayland/clients/rects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wayland/clients/client_base.cc
diff --git a/components/exo/wayland/clients/client_base.cc b/components/exo/wayland/clients/client_base.cc
index 8c17ba56ed51b15fbaa3d47db39a00aed4b0b794..0909a064b558b1e2851a229ce51fa069a413d0ad 100644
--- a/components/exo/wayland/clients/client_base.cc
+++ b/components/exo/wayland/clients/client_base.cc
@@ -269,6 +269,9 @@ bool ClientBase::Init(const InitParams& params) {
return false;
}
+ zwp_linux_dmabuf_v1_add_listener(globals_.linux_dmabuf.get(),
+ &params.dmabuf_listener, &globals_);
+
device_.reset(gbm_create_device(drm_fd_.get()));
if (!device_) {
LOG(ERROR) << "Can't create gbm device";
« no previous file with comments | « components/exo/wayland/clients/client_base.h ('k') | components/exo/wayland/clients/rects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698