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.
Add DeferredPaintObserver to ScopedLayerAnimationSettings.
We want to defer layer painting during some UI animations so that we can avoid resterization at the same time and we can cache the render suface of the animating layer. Adding an observer to ScopedLayerAnimationSettings can AddDeferredPaintRequest and RemoveDeferredPaintRequest at the beginning and end of the animation. Bug: 761109 Test: LayerAnimatorTest.DeferredPaint* Change-Id: If5e7afb7d2564f5ff480438447eabd10fca799ab Reviewed-on: https://chromium-review.googlesource.com/685493 Commit-Queue: Tao Wu <wutao@chromium.org> Reviewed-by: Antoine Labour <piman@chromium.org> Reviewed-by: David Reveman <reveman@chromium.org> Cr-Commit-Position: refs/heads/master@{#506253}
- Loading branch information
wutao
authored and
Commit Bot
committed
Oct 4, 2017
1 parent
5d72d54
commit 7ba7cc8
Showing
6 changed files
with
308 additions
and
7 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
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