/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkShaper.h" #include "SkTextBlobPriv.h" SkShaper::RunHandler::Buffer SkTextBlobBuilderRunHandler::newRunBuffer(const RunInfo&, const SkFont& font, int glyphCount, int textCount) { const auto& runBuffer = SkTextBlobBuilderPriv::AllocRunTextPos(&fBuilder, font, glyphCount, textCount, SkString()); return { runBuffer.glyphs, runBuffer.points(), runBuffer.utf8text, runBuffer.clusters }; } sk_sp SkTextBlobBuilderRunHandler::makeBlob() { return fBuilder.make(); }