This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include " impeller/entity/contents/color_source_text_contents.h"
6
6
7
+ #include " color_source_text_contents.h"
7
8
#include " impeller/entity/contents/content_context.h"
8
9
#include " impeller/entity/contents/texture_contents.h"
9
10
#include " impeller/renderer/render_pass.h"
@@ -33,6 +34,12 @@ void ColorSourceTextContents::SetTextPosition(Point position) {
33
34
position_ = position;
34
35
}
35
36
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
+
36
43
bool ColorSourceTextContents::Render (const ContentContext& renderer,
37
44
const Entity& entity,
38
45
RenderPass& pass) const {
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ class ColorSourceTextContents final : public Contents {
32
32
// |Contents|
33
33
std::optional<Rect> GetCoverage (const Entity& entity) const override ;
34
34
35
+ // |Contents|
36
+ void PopulateGlyphAtlas (
37
+ const std::shared_ptr<LazyGlyphAtlas>& lazy_glyph_atlas,
38
+ Scalar scale) const override ;
39
+
35
40
// |Contents|
36
41
bool Render (const ContentContext& renderer,
37
42
const Entity& entity,
You can’t perform that action at this time.
0 commit comments