This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55#include " impeller/entity/contents/color_source_text_contents.h"
66
7+ #include " color_source_text_contents.h"
78#include " impeller/entity/contents/content_context.h"
89#include " impeller/entity/contents/texture_contents.h"
910#include " impeller/renderer/render_pass.h"
@@ -33,6 +34,12 @@ void ColorSourceTextContents::SetTextPosition(Point position) {
3334 position_ = position;
3435}
3536
37+ void ColorSourceTextContents::PopulateGlyphAtlas (
38+ const std::shared_ptr<LazyGlyphAtlas>& lazy_glyph_atlas,
39+ Scalar scale) const {
40+ text_contents_->PopulateGlyphAtlas (lazy_glyph_atlas, scale);
41+ }
42+
3643bool ColorSourceTextContents::Render (const ContentContext& renderer,
3744 const Entity& entity,
3845 RenderPass& pass) const {
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ class ColorSourceTextContents final : public Contents {
3232 // |Contents|
3333 std::optional<Rect> GetCoverage (const Entity& entity) const override ;
3434
35+ // |Contents|
36+ void PopulateGlyphAtlas (
37+ const std::shared_ptr<LazyGlyphAtlas>& lazy_glyph_atlas,
38+ Scalar scale) const override ;
39+
3540 // |Contents|
3641 bool Render (const ContentContext& renderer,
3742 const Entity& entity,
You can’t perform that action at this time.
0 commit comments