Skip to content

Commit

Permalink
[Impeller] Eliminate some shared_ptr copying from EntityPass::Render (#…
Browse files Browse the repository at this point in the history
…49855)

Every drop counts right?
  • Loading branch information
dnfield committed Jan 18, 2024
1 parent d80fe1c commit de68e76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impeller/entity/entity_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ bool EntityPass::Render(ContentContext& renderer,
Rect::MakeSize(root_render_target.GetRenderTargetSize()),
{.readonly = true});

IterateAllEntities([lazy_glyph_atlas =
renderer.GetLazyGlyphAtlas()](const Entity& entity) {
const auto& lazy_glyph_atlas = renderer.GetLazyGlyphAtlas();
IterateAllEntities([&lazy_glyph_atlas](const Entity& entity) {
if (const auto& contents = entity.GetContents()) {
contents->PopulateGlyphAtlas(lazy_glyph_atlas, entity.DeriveTextScale());
}
Expand Down

0 comments on commit de68e76

Please sign in to comment.