blob: 91e7713c1253b7cd2aa9b5824590c1b6ae326471 [file] [log] [blame]
/*
* 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 "include/atlastext/SkAtlasTextContext.h"
#include "include/atlastext/SkAtlasTextRenderer.h"
#include "src/atlastext/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))) {}