Open Bug 1458302 Opened 6 years ago Updated 2 years ago

Use nsDisplayItem::IsReused as a preliminary check to figure out if nsDisplayTransform's transform has changed

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox61 --- disabled

People

(Reporter: mattwoodrow, Unassigned)

References

(Blocks 1 open bug)

Details

If IsReused is false, then the item is the same one as was used last time (retained by retained-dl), and the transform must not have changed.

WR is currently comparing transforms, so we could use this to reduce how often we have to do the full matrix compare.
Blocks: 1485450
Priority: P2 → P3
I don't think we need this for release.
Blocks: stage-wr-next
No longer blocks: stage-wr-trains
No longer blocks: 1485450

It looks like the code that does the full matrix compare doesn't exist anymore, (and by the look of it the new code is https://searchfox.org/mozilla-central/rev/6cc48251bb97600fdf11a5b4c5f621bfc8606d55/gfx/layers/wr/WebRenderCommandBuilder.cpp#263 ).

There is still https://searchfox.org/mozilla-central/rev/6cc48251bb97600fdf11a5b4c5f621bfc8606d55/gfx/layers/wr/WebRenderCommandBuilder.cpp#484 which already existed when this bug was filed.

Should we close this bug?

Flags: needinfo?(matt.woodrow)

It looks like the code to skip invalidation checks if we have a retained display item are disabled - https://searchfox.org/mozilla-central/rev/6cc48251bb97600fdf11a5b4c5f621bfc8606d55/gfx/layers/wr/WebRenderCommandBuilder.cpp#383

Flags: needinfo?(matt.woodrow)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.