/* * Copyright 2024 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "modules/skshaper/include/SkShaper_factory.h" #include "include/core/SkFontMgr.h" // IWYU pragma: keep namespace { class PrimitiveFactory final : public SkShapers::Factory { std::unique_ptr makeShaper(sk_sp) override { return SkShapers::Primitive::PrimitiveText(); } std::unique_ptr makeBidiRunIterator(const char*, size_t, uint8_t) override { return std::make_unique(0, 0); } std::unique_ptr makeScriptRunIterator(const char*, size_t, SkFourByteTag) override { return std::make_unique(0, 0); } SkUnicode* getUnicode() override { return nullptr; } }; } namespace SkShapers::Primitive { sk_sp Factory() { return sk_make_sp(); } } // namespace SkShapers::Primitive