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

Unified Diff: components/exo/wayland/server.cc

Issue 2272153002: Add ClientNativePixmap multi-planar support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-native-pixmap-dmabug-multiple-planes
Patch Set: ifdef USE_OZONE for unused variables. Created 4 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: components/exo/wayland/server.cc
diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
index de1df93921a6841580b7e99fbb01e5b4d2a8c747..53b20f9432e12933ea581195d6beb1b66a0a4470 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -536,9 +536,9 @@ void drm_create_prime_buffer(wl_client* client,
}
std::vector<gfx::NativePixmapPlane> planes;
- planes.emplace_back(stride0, offset0, 0);
- planes.emplace_back(stride1, offset1, 0);
- planes.emplace_back(stride2, offset2, 0);
+ planes.emplace_back(stride0, offset0, 0, 0);
+ planes.emplace_back(stride1, offset1, 0, 0);
+ planes.emplace_back(stride2, offset2, 0, 0);
std::vector<base::ScopedFD> fds;
size_t num_planes =
@@ -694,7 +694,7 @@ void linux_buffer_params_create(wl_client* client,
return;
}
LinuxBufferParams::Plane& plane = plane_it->second;
- planes.emplace_back(plane.stride, plane.offset, 0);
+ planes.emplace_back(plane.stride, plane.offset, 0, 0);
if (plane.fd.is_valid())
fds.push_back(std::move(plane.fd));
}
« no previous file with comments | « chrome/gpu/arc_gpu_video_decode_accelerator.cc ('k') | gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698