Retry: Break apart RenderWidgetHost::GetVisualProperties()
Attempt to reland: https://chromium-review.googlesource.com/c/chromium/src/+/1773878 CFI bot identified a lifetime issue that manifested in a hang during TouchSelectionForCrossProcessFramesTests/TouchSelectionControllerClientAuraSiteIsolationTest.BasicSelectionIsolatedIframe/0 === Original commit message === RenderWidgetHost::GetVisualProperties() was doing 3 separate things (1) Actually calculating the VisualProperties (2) Checking against the last stored VisualProperties to determine if the stored copy needs updating. (3) Determining if an ack should be expected if an update is eventually sent with the result of this function. This CL breaks it out into 3 new functions: GetVisualProperties() - Generates the VisualProperties. This should be const but too much of the call chain underneath it did not annotate their getters with const that annotating would be too annoying. DidVisualPropertiesSizeChange() - Helper function that extracts a common query used by DoesVisualPropertiesNeedAck() and StoredVisualPropertiesNeedsUpdate(). DoesVisualPropertiesNeedAck() - Returns true if sending the given VisualProperties update to the renderer will generate an ack. StoredVisualPropertiesNeedsUpdate() - Returns true if the stored copy of the VisualProperties is different enough from the incoming one that it needs an update. Bug: 998273 Change-Id: Ifabce4e3232ee313bde937e6098dc83c2e616333 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1783669Reviewed-by:Albert J. Wong <ajwong@chromium.org> Reviewed-by:
ccameron <ccameron@chromium.org> Auto-Submit: Albert J. Wong <ajwong@chromium.org> Commit-Queue: Albert J. Wong <ajwong@chromium.org> Cr-Commit-Position: refs/heads/master@{#693407}
Showing
This diff is collapsed.
Please register or sign in to comment