aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/atlastext/SkAtlasTextContext.cpp
blob: 85e79118eee2cee807294642bd4c41a73b5d4e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "SkAtlasTextContext.h"
#include "SkAtlasTextRenderer.h"
#include "SkInternalAtlasTextContext.h"

sk_sp<SkAtlasTextContext> SkAtlasTextContext::Make(sk_sp<SkAtlasTextRenderer> renderer) {
    return sk_sp<SkAtlasTextContext>(new SkAtlasTextContext(std::move(renderer)));
}

SkAtlasTextContext::SkAtlasTextContext(sk_sp<SkAtlasTextRenderer> renderer)
        : fInternalContext(SkInternalAtlasTextContext::Make(std::move(renderer))) {}