Cache gpu suitability in DisplayItemList, remove SetUnsuitable...ForTesting
commit5d8f98c33491997b3ffa1c8494fe6014c4b8e4c9
authorpdr <pdr@chromium.org>
Mon, 21 Sep 2015 20:00:40 +0000 (21 13:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 21 Sep 2015 20:01:34 +0000 (21 20:01 +0000)
tree2f232f46685d31f26d6ec9a14c9a3cd2f4657e9c
parent09d95755367c62b40fa6145c1a9079d7a8406fb4
Cache gpu suitability in DisplayItemList, remove SetUnsuitable...ForTesting

This patch moves the gpu suitability "cache" into display_item_list
so that calls to DisplayItemList::IsSuitableForGpuRasterization are
fast. With the cache moved we no longer need to track suitability in
the recording source and can remove SetUnsuitableForGpuRasterizationForTesting.

BUG=524314
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#349999}
cc/layers/picture_layer_unittest.cc
cc/playback/display_item_list.cc
cc/playback/display_item_list.h
cc/playback/display_list_recording_source.cc
cc/playback/display_list_recording_source.h
cc/playback/picture_pile.cc
cc/playback/picture_pile.h
cc/playback/recording_source.h
cc/test/fake_display_list_recording_source.cc
cc/test/fake_display_list_recording_source.h
cc/trees/layer_tree_host_unittest.cc