#include "src/text/gpu/SubRunControl.h"
#include "include/core/SkFont.h"
#include "include/core/SkFontTypes.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkScalar.h"
#include "src/core/SkFontPriv.h"
#include "src/core/SkGlyph.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#include <tuple>
struct SkPoint;
namespace sktext::gpu {
#if !defined(SK_DISABLE_SDF_TEXT)
static const int kSmallDFFontLimit = …;
static const int kMediumDFFontLimit = …;
static const int kLargeDFFontLimit = …;
#ifdef SK_BUILD_FOR_MAC
static const int kExtraLargeDFFontLimit = 256;
#endif
SkScalar SubRunControl::MinSDFTRange(bool useSDFTForSmallText, SkScalar min) { … }
SubRunControl::SubRunControl(
bool ableToUseSDFT, bool useSDFTForSmallText, bool useSDFTForPerspectiveText,
SkScalar min, SkScalar max,
bool forcePathAA)
: … { … }
#endif
bool SubRunControl::isDirect(SkScalar approximateDeviceTextSize, const SkPaint& paint,
const SkMatrix& matrix) const { … }
#if !defined(SK_DISABLE_SDF_TEXT)
bool SubRunControl::isSDFT(SkScalar approximateDeviceTextSize, const SkPaint& paint,
const SkMatrix& matrix) const { … }
std::tuple<SkFont, SkScalar, SDFTMatrixRange>
SubRunControl::getSDFFont(const SkFont& font, const SkMatrix& viewMatrix,
const SkPoint& textLoc) const { … }
bool SDFTMatrixRange::matrixInRange(const SkMatrix& matrix) const { … }
void SDFTMatrixRange::flatten(SkWriteBuffer& buffer) const { … }
SDFTMatrixRange SDFTMatrixRange::MakeFromBuffer(SkReadBuffer& buffer) { … }
#endif
}