blob: df9a07f6a2d81efd03b46aed1ca0b217ad222477 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_UI_SKIA_SKIA_VMO_DATA_H_
#define LIB_UI_SKIA_SKIA_VMO_DATA_H_
#include "lib/fsl/vmo/sized_vmo.h"
#include "third_party/skia/include/core/SkData.h"
namespace mozart {
// Makes an |SkData| object backed by a virtual memory object which is mapped
// read only. Does not take ownership of the handle.
// Returns nullptr on failure.
sk_sp<SkData> MakeSkDataFromVMO(const fsl::SizedVmo& vmo);
} // namespace mozart
#endif // LIB_UI_SKIA_SKIA_VMO_DATA_H_