chromium/third_party/skia/src/core/SkFontDescriptor.cpp

/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "src/core/SkFontDescriptor.h"

#include "include/core/SkData.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkStream.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkTFitsIn.h"
#include "include/private/base/SkTo.h"
#include "src/core/SkStreamPriv.h"

#include <cstddef>
#include <cstdint>
enum {};

SkFontDescriptor::SkFontDescriptor() {}

[[nodiscard]] static bool read_string(SkStream* stream, SkString* string) {}

static bool write_string(SkWStream* stream, const SkString& string, uint32_t id) {}

static bool write_uint(SkWStream* stream, size_t n, uint32_t id) {}

static bool write_scalar(SkWStream* stream, SkScalar n, uint32_t id) {}

[[nodiscard]] static size_t read_id(SkStream* stream) {}

static constexpr SkScalar usWidths[9] {};
static constexpr SkScalar width_for_usWidth[0x10] =;

bool SkFontDescriptor::Deserialize(SkStream* stream, SkFontDescriptor* result) {}

void SkFontDescriptor::serialize(SkWStream* stream) const {}

SkFontStyle::Width SkFontDescriptor::SkFontStyleWidthForWidthAxisValue(SkScalar width) {}