From 130eef1c248274872c8de8ae34de0edee0695d15 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 20 Oct 2020 16:05:20 +0000 Subject: [PATCH] [fuchsia] Migrate to new zx::vmar::map method This new method receives its arguments in the same order as the underlying C system call. This CL should not change behavior. Change-Id: I6fd1e497b19d38d1133b1b8187146b98131093a8 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/328624 Commit-Queue: Adam Barth Commit-Queue: Mike Klein Auto-Submit: Adam Barth Reviewed-by: Mike Klein --- src/ports/SkFontMgr_fuchsia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ports/SkFontMgr_fuchsia.cpp b/src/ports/SkFontMgr_fuchsia.cpp index ceb7c54ac9..2bf76f1c51 100644 --- a/src/ports/SkFontMgr_fuchsia.cpp +++ b/src/ports/SkFontMgr_fuchsia.cpp @@ -46,7 +46,7 @@ sk_sp MakeSkDataFromBuffer(const fuchsia::mem::Buffer& data, std::function release_proc) { uint64_t size = data.size; uintptr_t buffer = 0; - zx_status_t status = zx::vmar::root_self()->map(0, data.vmo, 0, size, ZX_VM_PERM_READ, &buffer); + zx_status_t status = zx::vmar::root_self()->map(ZX_VM_PERM_READ, 0, data.vmo, 0, size, &buffer); if (status != ZX_OK) return nullptr; auto context = new ReleaseSkDataContext(size, release_proc); return SkData::MakeWithProc(reinterpret_cast(buffer), size, ReleaseSkData, context);