forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cc webview] Defer finishing a 'frame' when draw is expected to happen.
In the regular async multi-threaded setting, the compositor submits a CompositorFrame 'during a frame', i.e. between BeginImplFrame() and FinishImplFrame(). In the sync setting for webview, the CompositorFrame is submitted 'after a frame', i.e. after both BeginImplFrame() and FinishImplFrame() has been called. This change defers the FinishImplFrame() to happen after the CompositorFrame is submitted (when a draw is anticipated). This change brings the webview configuration a little closer to the regular configuration. In the process, it also fixes the PercentDroppedFrames metrics for webview. BUG=1136519 Change-Id: I924c772d57cf2b5210d324e4da7acbe877aa298f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2469779 Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#820251}
- Loading branch information
Showing
4 changed files
with
59 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters