| Flutter Impeller |

dl_text_impeller.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "flutter/impeller/display_list/dl_text_impeller.h"
6
7 #include "flutter/impeller/typographer/backends/skia/text_frame_skia.h"
8
9 namespace flutter {
10
11 std::shared_ptr<DlTextImpeller> DlTextImpeller::Make(
12 const std::shared_ptr<impeller::TextFrame>& frame) {
13 return std::make_shared<DlTextImpeller>(frame);
14 }
15
16 std::shared_ptr<DlTextImpeller> DlTextImpeller::MakeFromBlob(
17 const sk_sp<SkTextBlob>& blob) {
18 return DlTextImpeller::Make(impeller::MakeTextFrameFromTextBlobSkia(blob));
19 }
20
21 DlTextImpeller::DlTextImpeller(
22 const std::shared_ptr<impeller::TextFrame>& frame)
23 : frame_(frame) {}
24
25 } // namespace flutter
flutter::DlTextImpeller::MakeFromBlob
static std::shared_ptr< DlTextImpeller > MakeFromBlob(const sk_sp< SkTextBlob > &blob)
Definition: dl_text_impeller.cc:16
flutter::DlTextImpeller::DlTextImpeller
DlTextImpeller(const std::shared_ptr< impeller::TextFrame > &frame)
Definition: dl_text_impeller.cc:21
flutter::DlTextImpeller::Make
static std::shared_ptr< DlTextImpeller > Make(const std::shared_ptr< impeller::TextFrame > &frame)
Definition: dl_text_impeller.cc:11
dl_text_impeller.h
flutter
Definition: dl_golden_blur_unittests.cc:16
impeller::MakeTextFrameFromTextBlobSkia
std::shared_ptr< TextFrame > MakeTextFrameFromTextBlobSkia(const sk_sp< SkTextBlob > &blob)
Definition: text_frame_skia.cc:45
text_frame_skia.h