cc: Cull DrawingDisplayItems outside of the raster playback rect
commitfb311cbcfcc06427a037ee01c7f0a3098a060e03
authordanakj <danakj@chromium.org>
Wed, 3 Jun 2015 23:42:04 +0000 (3 16:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Jun 2015 23:43:41 +0000 (3 23:43 +0000)
tree7157819047bdeaa0a93bf9e086e18b6fb2ff745f
parent0db211cbbdbf2d19e178190471d105de190237c0
cc: Cull DrawingDisplayItems outside of the raster playback rect

Avoid playing an SkPicture into the raster canvas at all if its
bounds are not going to intersect what is being rastered. This is
for the non-cached picture path which is only used by the ui
compositor at this time.

This improves the time to raster a single tab loading spinner in
the ui compositor from 0.0807235 ms to 0.0597263 for 26% less
raster time.

BUG=487387

Review URL: https://codereview.chromium.org/1158553004

Cr-Commit-Position: refs/heads/master@{#332730}
20 files changed:
cc/playback/clip_display_item.cc
cc/playback/clip_display_item.h
cc/playback/clip_path_display_item.cc
cc/playback/clip_path_display_item.h
cc/playback/compositing_display_item.cc
cc/playback/compositing_display_item.h
cc/playback/display_item.h
cc/playback/display_item_list.cc
cc/playback/display_item_list.h
cc/playback/display_list_raster_source.cc
cc/playback/display_list_recording_source.cc
cc/playback/drawing_display_item.cc
cc/playback/drawing_display_item.h
cc/playback/filter_display_item.cc
cc/playback/filter_display_item.h
cc/playback/float_clip_display_item.cc
cc/playback/float_clip_display_item.h
cc/playback/transform_display_item.cc
cc/playback/transform_display_item.h
cc/test/skia_common.cc