blob: 91e7713c1253b7cd2aa9b5824590c1b6ae326471 [file] [log] [blame]
Brian Salomoncbcb0a12017-11-19 13:20:13 -05001/*
2 * Copyright 2017 Google Inc.
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "include/atlastext/SkAtlasTextContext.h"
9#include "include/atlastext/SkAtlasTextRenderer.h"
10#include "src/atlastext/SkInternalAtlasTextContext.h"
Brian Salomoncbcb0a12017-11-19 13:20:13 -050011
12sk_sp<SkAtlasTextContext> SkAtlasTextContext::Make(sk_sp<SkAtlasTextRenderer> renderer) {
13 return sk_sp<SkAtlasTextContext>(new SkAtlasTextContext(std::move(renderer)));
14}
15
16SkAtlasTextContext::SkAtlasTextContext(sk_sp<SkAtlasTextRenderer> renderer)
17 : fInternalContext(SkInternalAtlasTextContext::Make(std::move(renderer))) {}