Flutter Engine
 
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/SkTypeface.h"
11
12namespace flutter {
13
14sk_sp<SkData> SerializeTypefaceWithoutData(SkTypeface* typeface, void* ctx);
15sk_sp<SkData> SerializeTypefaceWithData(SkTypeface* typeface, void* ctx);
16sk_sp<SkTypeface> DeserializeTypefaceWithoutData(const void* data,
17 size_t length,
18 void* ctx);
19
20// Serializes only the metadata of the image and not the underlying pixel data.
21sk_sp<SkData> SerializeImageWithoutData(SkImage* image, void* ctx);
22sk_sp<SkImage> DeserializeImageWithoutData(const void* data,
23 size_t length,
24 void* ctx);
25
26} // namespace flutter
27
28#endif // FLUTTER_SHELL_COMMON_SERIALIZATION_CALLBACKS_H_
FlutterVulkanImage * image
size_t length
sk_sp< SkData > SerializeTypefaceWithData(SkTypeface *typeface, void *ctx)
sk_sp< SkImage > DeserializeImageWithoutData(const void *data, size_t length, void *ctx)
sk_sp< SkTypeface > DeserializeTypefaceWithoutData(const void *data, size_t length, void *ctx)
sk_sp< SkData > SerializeTypefaceWithoutData(SkTypeface *typeface, void *ctx)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition switch_defs.h:36
sk_sp< SkData > SerializeImageWithoutData(SkImage *image, void *ctx)