Closed Bug 1441713 Opened 7 years ago Closed 7 years ago

Skip SynchronizeForSnapshot in the case of reftest-no-flush too

Categories

(Testing :: Reftest, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox60 fixed)

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(1 file)

That's because nsDOMWindowUtils.updateLayerTree() flushes styles (actually it specifies FlushType::Display though). https://treeherder.mozilla.org/#/jobs?repo=try&revision=6fffce59b3734d1206bd0663e61ea943672e735a In the above try, I did skip whole step of SynchronizeForSnapshot, but should we skip only updateLayerTree() instead? I think if we want to test async scrolling and async animation simultaneously we will specify both reftest-no-sync-layers and reftest-no-flush, so it will not be matter, but I defer to dbaron's opinion.
Blocks: 1419851
I had been wondering why some reftests which specify reftest-no-flush take the snapshot after animation finished on WebRender. That's because nsDOMWindowUtils.updateLayerTree() in question is called from the callback of MozAfterPaint event, thus we do flush throttled animations again, then wait for MozAfterPaint event, then repeat this cycle until the animation end.
Comment on attachment 8954579 [details] Bug 1441713 - Skip SynchronizeForSnapshot in the case of 'reftest-no-flush'. https://reviewboard.mozilla.org/r/223668/#review230098
Attachment #8954579 - Flags: review?(dbaron) → review+
Thanks for the review!
Pushed by hikezoe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/44363ede4383 Skip SynchronizeForSnapshot in the case of 'reftest-no-flush'. r=dbaron
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: