mirror of https://github.com/linebender/xilem
Add per-widget trace spans to compose pass (#523)
This commit is contained in:
parent
652ee68ae5
commit
7842fd98df
|
@ -49,6 +49,8 @@ fn compose_widget(
|
|||
parent_moved: bool,
|
||||
parent_translation: Vec2,
|
||||
) {
|
||||
let _span = widget.item.make_trace_span().entered();
|
||||
|
||||
let moved = parent_moved || state.item.translation_changed;
|
||||
let translation = parent_translation + state.item.translation + state.item.origin.to_vec2();
|
||||
state.item.window_origin = translation.to_point();
|
||||
|
|
Loading…
Reference in New Issue