Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkFontMetricsPriv.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkFontMetricsPriv_DEFINED
9#define SkFontMetricsPriv_DEFINED
10
11#include <optional>
12
13class SkReadBuffer;
14class SkWriteBuffer;
15struct SkFontMetrics;
16
18public:
19 static void Flatten(SkWriteBuffer& buffer, const SkFontMetrics& metrics);
20 static std::optional<SkFontMetrics> MakeFromBuffer(SkReadBuffer& buffer);
21};
22#endif //SkFontMetricsPriv_DEFINED
static void Flatten(SkWriteBuffer &buffer, const SkFontMetrics &metrics)
static std::optional< SkFontMetrics > MakeFromBuffer(SkReadBuffer &buffer)
static const uint8_t buffer[]