mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Most of the #include directives for SkPicture are removed except where they are still functional. Many comments rewritten to no longer be SkPicture-centric. - DL unit tests still use it for consistency testing - rasterizer/engine still use it for screen shot support - Fuchsia still uses it extensively
29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
// Copyright 2013 The Flutter 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 FLUTTER_SHELL_COMMON_SERIALIZATION_CALLBACKS_H_
|
|
#define FLUTTER_SHELL_COMMON_SERIALIZATION_CALLBACKS_H_
|
|
|
|
#include "flutter/fml/logging.h"
|
|
#include "third_party/skia/include/core/SkImage.h"
|
|
#include "third_party/skia/include/core/SkTypeface.h"
|
|
|
|
namespace flutter {
|
|
|
|
sk_sp<SkData> SerializeTypefaceWithoutData(SkTypeface* typeface, void* ctx);
|
|
sk_sp<SkData> SerializeTypefaceWithData(SkTypeface* typeface, void* ctx);
|
|
sk_sp<SkTypeface> DeserializeTypefaceWithoutData(const void* data,
|
|
size_t length,
|
|
void* ctx);
|
|
|
|
// Serializes only the metadata of the image and not the underlying pixel data.
|
|
sk_sp<SkData> SerializeImageWithoutData(SkImage* image, void* ctx);
|
|
sk_sp<SkImage> DeserializeImageWithoutData(const void* data,
|
|
size_t length,
|
|
void* ctx);
|
|
|
|
} // namespace flutter
|
|
|
|
#endif // FLUTTER_SHELL_COMMON_SERIALIZATION_CALLBACKS_H_
|