[Paint Preview] Try to reduce memory use during capture
paint_preview::BuildResponse() shows up a fair amount in stack scans. Often times these are OOMs I want to try to understand if this is a material issue or if identical code folding is mangling BuildResponse with other symbols. This change does a few things 1) Try to reduce memory usage in FinishRecording() to reduce OOM risk. Mainly by freeing/reseting memory expensive objects earlier. 2) Log when paint_preview::BuildResponse() is legitimately called. 3) General refactoring/cleanup. I hope to revert 2 once we know if the issue is actually paint_preview::BuildResponse() at fault. Change-Id: I14d99f1fb733565f984fc93fc131ee448fd642f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423408Reviewed-by:Mehran Mahmoudi <mahmoudi@chromium.org> Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> Cr-Commit-Position: refs/heads/master@{#809394}
Showing
Please register or sign in to comment