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.
Revert "images: Move animation of images to cc."
This reverts commit cb1afec. Reason for revert: This CL is the most likely reason of failures in MSAN bots on cc_unittests GpuImageDecodeCacheTests/GpuImageDecodeCacheTest.QualityCappedAtMedium/1 GpuImageDecodeCacheTests/GpuImageDecodeCacheTest.GetDecodedImageForDrawNegative/1 GpuImageDecodeCacheTests/GpuImageDecodeCacheTest.GetTaskForImageDifferentImage/1 (and >30 more) on Linux and CrOS https://uberchromegw.corp.google.com/i/chromium.memory/builders/Linux%20MSan%20Tests/builds/4424 Original change's description: > images: Move animation of images to cc. > > Currently animating an image requires an invalidation and repaint, to > record the next frame of animation in an updated DisplayItemList from > blink to cc. This change eliminates repaints for these animations by > ticking them in the compositor and selecting the frame index at playback > time during raster, instead of the value stored in the recording. Doing > this requires the following: > > 1) An ImageAnimationController class is added to track the frame index > for an image used on the active/pending tree and to schedule an > invalidation when the animation needs to be advanced. > > 2) The frame_index to use for an image is added to DrawImage for the > image decode caches. When creating a raster task for a tile, a > map of image_id_to_frame_index_ to use for an image is stored in the > PlaybackImageProvider, based on the tree of this tile. > > 3) The animation state for an image is persisted in the controller across > commits. This is necessary to ensure that the animation is resumed from > the last frame displayed, even if the image is no longer being painted. > Subsequent changes will remove this tracking on navigations, or update > it if explicitly reset on the main thread. > > The following improvements in smoothness and thread_times result for > https://giphy.com/search/60-fps on Android Nexus5 from this change: > > BEFORE > thread_total_all_cpu_time_per_frame: 64.023 ms > thread_total_fast_path_cpu_time_per_frame: 24.411 ms > thread_renderer_main_cpu_time_per_frame: 9.866 ms > thread_renderer_compositor_cpu_time_per_frame: 5.513 ms > thread_raster_cpu_time_per_frame: 29.376 ms > > avg_surface_fps: 28.250 > mean_frame_time: 35.523 ms > percentage_smooth: 41.495 > jank_count: 95 > max_frame_delay: 9.250 > > AFTER > thread_total_all_cpu_time_per_frame: 42.568 ms > thread_total_fast_path_cpu_time_per_frame: 21.003 ms > thread_renderer_main_cpu_time_per_frame: 1.614 ms > thread_renderer_compositor_cpu_time_per_frame: 4.826 ms > thread_raster_cpu_time_per_frame: 19.695 ms > > avg_surface_fps: 36.5 > mean_frame_time: 27.302 ms > percentage_smooth: 60.045 > jank_count: 73 > max_frame_delay: 7.250 > > R= chrishtr@chromium.org, enne@chromium.org, vmpstr@chromium.org > > Bug: 735741 > Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel > Change-Id: I4dc018d4fc2aa82962d05f24d88ae0e73b39f7ca > Reviewed-on: https://chromium-review.googlesource.com/651136 > Commit-Queue: Khushal <khushalsagar@chromium.org> > Reviewed-by: Chris Harrelson <chrishtr@chromium.org> > Reviewed-by: vmpstr <vmpstr@chromium.org> > Reviewed-by: enne <enne@chromium.org> > Reviewed-by: Antoine Labour <piman@chromium.org> > Cr-Commit-Position: refs/heads/master@{#503660} TBR=vmpstr@chromium.org,chrishtr@chromium.org,enne@chromium.org,khushalsagar@chromium.org,piman@chromium.org Change-Id: I266bd9daa67937a1b5950ad2ca06d888cbe2b119 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 735741 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel Reviewed-on: https://chromium-review.googlesource.com/678734 Reviewed-by: Vadym Doroshenko <dvadym@chromium.org> Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Cr-Commit-Position: refs/heads/master@{#503702}
- Loading branch information
Vadym Doroshenko
authored and
Commit Bot
committed
Sep 22, 2017
1 parent
419d739
commit 1f14e22
Showing
56 changed files
with
251 additions
and
2,204 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
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
Oops, something went wrong.