weblayer: Use 0 deadline for resize except rotation
Weblayer resize may be caused by client in which case keeping the page interactive is more important than showing gutters. This CL adds a heuristic to detect surface resize due to a rotation. Then add plumbing for a surface resize to supply a deadline override, and override the deadline to 0 for non-rotation resizes. There are two resize heuristics: If activity is recreated, we already have code to detect this case in BrowserImpl, and just pass it into ContentViewRenderView when it's recreated. If activity handles rotation, it's detected by the DisplayAndroidObserver which appears to always happens before the resize. This CL does not change non-weblayer products. Bug: 1126706 Change-Id: Iac6cd90f159765fc8a56a9a766130851bd6177b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402289 Auto-Submit: Bo <boliu@chromium.org> Commit-Queue: Timothy Dresser <tdresser@chromium.org> Reviewed-by:Timothy Dresser <tdresser@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Reviewed-by:
Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#806630}
Showing
Please register or sign in to comment