Brian Salomon | cbcb0a1 | 2017-11-19 13:20:13 -0500 | [diff] [blame] | 1 | /* |
| 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 | |
| 8 | #include "SkAtlasTextContext.h" |
| 9 | #include "SkAtlasTextRenderer.h" |
| 10 | #include "SkInternalAtlasTextContext.h" |
| 11 | |
| 12 | sk_sp<SkAtlasTextContext> SkAtlasTextContext::Make(sk_sp<SkAtlasTextRenderer> renderer) { |
| 13 | return sk_sp<SkAtlasTextContext>(new SkAtlasTextContext(std::move(renderer))); |
| 14 | } |
| 15 | |
| 16 | SkAtlasTextContext::SkAtlasTextContext(sk_sp<SkAtlasTextRenderer> renderer) |
| 17 | : fInternalContext(SkInternalAtlasTextContext::Make(std::move(renderer))) {} |