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

Unified Diff: ui/ozone/platform/wayland/wayland_surface_factory.cc

Issue 2843113002: make base::SharedMemoryHandle a class on POSIX. (Closed)
Patch Set: Fix test error. 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
Index: ui/ozone/platform/wayland/wayland_surface_factory.cc
diff --git a/ui/ozone/platform/wayland/wayland_surface_factory.cc b/ui/ozone/platform/wayland/wayland_surface_factory.cc
index 11a2ad10bbd96ddd3741bd68af81dbaa31b2ab03..1adb2d74ace82e1fb032f9cad885e444fd3a292f 100644
--- a/ui/ozone/platform/wayland/wayland_surface_factory.cc
+++ b/ui/ozone/platform/wayland/wayland_surface_factory.cc
@@ -68,7 +68,7 @@ sk_sp<SkSurface> WaylandCanvasSurface::GetSurface() {
return nullptr;
wl::Object<wl_shm_pool> pool(wl_shm_create_pool(
- connection_->shm(), shared_memory->handle().fd, length));
+ connection_->shm(), shared_memory->handle().GetHandle(), length));
if (!pool)
return nullptr;
wl::Object<wl_buffer> buffer(
« base/memory/shared_memory_handle_posix.cc ('K') | « ui/gfx/mojo/buffer_types_struct_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698