Commit 40c90b9e authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Run lifecycle updates only (but not begin frames) when in nested composite

It isn't necessary to run BeginFrame and all of the UpdateVisualState
code. This should make it easier to move LayerTreeView into blink.

Change-Id: Iefb0caffc6cdc38db10352b50404afebb8120dd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2110512Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751802}
parent 3724eeec
...@@ -202,8 +202,8 @@ void WebWidgetTestProxy::SynchronouslyComposite(bool do_raster) { ...@@ -202,8 +202,8 @@ void WebWidgetTestProxy::SynchronouslyComposite(bool do_raster) {
// Web tests can use a nested message loop to pump frames while inside a // Web tests can use a nested message loop to pump frames while inside a
// frame, but the compositor does not support this. In this case, we only // frame, but the compositor does not support this. In this case, we only
// run blink's lifecycle updates. // run blink's lifecycle updates.
BeginMainFrame(base::TimeTicks::Now()); GetWebWidget()->UpdateAllLifecyclePhases(
UpdateVisualState(); blink::DocumentUpdateReason::kTest);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment