Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1dc36de

Browse files
committed
ColorSourceTextContents too
1 parent cb392b8 commit 1dc36de

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

impeller/entity/contents/color_source_text_contents.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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+
3643
bool ColorSourceTextContents::Render(const ContentContext& renderer,
3744
const Entity& entity,
3845
RenderPass& pass) const {

impeller/entity/contents/color_source_text_contents.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)