SkAtlasTextContext.cpp 638 B

1234567891011121314151617
  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. #include "include/atlastext/SkAtlasTextContext.h"
  8. #include "include/atlastext/SkAtlasTextRenderer.h"
  9. #include "src/atlastext/SkInternalAtlasTextContext.h"
  10. sk_sp<SkAtlasTextContext> SkAtlasTextContext::Make(sk_sp<SkAtlasTextRenderer> renderer) {
  11. return sk_sp<SkAtlasTextContext>(new SkAtlasTextContext(std::move(renderer)));
  12. }
  13. SkAtlasTextContext::SkAtlasTextContext(sk_sp<SkAtlasTextRenderer> renderer)
  14. : fInternalContext(SkInternalAtlasTextContext::Make(std::move(renderer))) {}