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/SkTypeface.h"
12
13namespace flutter {
14
15SkSerialReturnType SerializeTypefaceWithoutData(SkTypeface* typeface,
16 void* ctx);
17SkSerialReturnType SerializeTypefaceWithData(SkTypeface* typeface, void* ctx);
18sk_sp<SkTypeface> DeserializeTypefaceWithoutData(const void* data,
19 size_t length,
20 void* ctx);
21
22// Serializes only the metadata of the image and not the underlying pixel data.
23SkSerialReturnType SerializeImageWithoutData(SkImage* image, void* ctx);
24sk_sp<SkImage> DeserializeImageWithoutData(const void* data,
25 size_t length,
26 void* ctx);
27
28} // namespace flutter
29
30#endif // FLUTTER_SHELL_COMMON_SERIALIZATION_CALLBACKS_H_
FlutterVulkanImage * image
size_t length
SkSerialReturnType SerializeTypefaceWithData(SkTypeface *typeface, void *ctx)
sk_sp< SkImage > DeserializeImageWithoutData(const void *data, size_t length, void *ctx)
SkSerialReturnType SerializeTypefaceWithoutData(SkTypeface *typeface, void *ctx)
sk_sp< SkTypeface > DeserializeTypefaceWithoutData(const void *data, size_t length, 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
SkSerialReturnType SerializeImageWithoutData(SkImage *image, void *ctx)