Closed Bug 1643706 Opened 1 month ago Closed 1 month ago

Make WR tree printing more android-friendly

Categories

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

Other Branch
task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: kats, Assigned: kats)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Right now doing e.g. spatial_tree.print() sends the tree-printed output to stdout which is totally useless on Android. On Android we instead want to send to logcat. In theory there's some hocus-pocus you can do to redirect stdout to logcat but I've never gotten that to work, so this is always a bit of a pain point for me when debugging WR on android.

Instead of using the default TreePrinter implementation which sends output
to stdout, collect it into a Vec<u8> and use the debug! macro to log it,
which sends it to a more useful destination (logcat) on Android.

Depends on D78536

Attachment #9154580 - Attachment is obsolete: true
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4e89164de2d6
Make spatial_tree.print() work on Android too. r=kvark
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.