Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
serialization_callbacks.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_COMMON_SERIALIZATION_CALLBACKS_H_
6#define FLUTTER_SHELL_COMMON_SERIALIZATION_CALLBACKS_H_
7
9#include "third_party/skia/include/core/SkImage.h"
10#include "third_party/skia/include/core/SkSerialProcs.h"
11#include "third_party/skia/include/core/SkStream.h"
12#include "third_party/skia/include/core/SkTypeface.h"
13
14namespace flutter {
15
16SkSerialReturnType SerializeTypefaceWithoutData(SkTypeface* typeface,
17 void* ctx);
18SkSerialReturnType SerializeTypefaceWithData(SkTypeface* typeface, void* ctx);
19sk_sp<SkTypeface> DeserializeTypefaceWithoutData(SkStream&, void* ctx);
20
21// Serializes only the metadata of the image and not the underlying pixel data.
22SkSerialReturnType SerializeImageWithoutData(SkImage* image, void* ctx);
23sk_sp<SkImage> DeserializeImageWithoutData(sk_sp<SkData>,
24 std::optional<SkAlphaType>,
25 void* ctx);
26
27} // namespace flutter
28
29#endif // FLUTTER_SHELL_COMMON_SERIALIZATION_CALLBACKS_H_
FlutterVulkanImage * image
SkSerialReturnType SerializeTypefaceWithData(SkTypeface *typeface, void *ctx)
sk_sp< SkTypeface > DeserializeTypefaceWithoutData(SkStream &, void *ctx)
sk_sp< SkImage > DeserializeImageWithoutData(sk_sp< SkData > data, std::optional< SkAlphaType >, void *)
SkSerialReturnType SerializeTypefaceWithoutData(SkTypeface *typeface, void *ctx)
SkSerialReturnType SerializeImageWithoutData(SkImage *image, void *ctx)