Modify rasterize_and_record for DisplayItemList recording.
commit0154bfa2bd8c5cd8a906deb1e6415f7c7fc417a0
authorschenney <schenney@chromium.org>
Thu, 5 Feb 2015 19:46:49 +0000 (5 11:46 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Feb 2015 19:47:37 +0000 (5 19:47 +0000)
tree4c7603ddd089af43e74a5009e5ea723d6dca7f4e
parent2bc1e9c87721c67a8365748d0ff460ab6641adbf
Modify rasterize_and_record for DisplayItemList recording.

There is a lot of change here for relatively little effect.
That effect is important, however, for moving forward.

This depends on https://codereview.chromium.org/880653004/.

1) Move Picture::RecordingMode to RecordingSource, because
   Display List recording does not use Picture.
2) Add a new recording mode for disabled caches, which has
   meaning in Display List recording. Picture recording falls
   back to normal recording, while Display List recording
   uses painting disabled mode when null canvas is specified,
   because null canvas has no meaning for Display Lists.
3) Rename the enum in ContentLayerClient to reflect the new
   painting control modes and the changes in
   WebContentLayerClient.
4) Adjust all the code that uses these settings.
5) Adjust the benchmark code to make use of the new modes.

R=ajuma,vmpstr
BUG=451448

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

Cr-Commit-Position: refs/heads/master@{#314857}
34 files changed:
cc/blink/web_content_layer_impl.cc
cc/blink/web_content_layer_impl.h
cc/debug/picture_record_benchmark.cc
cc/debug/rasterize_and_record_benchmark.cc
cc/debug/rasterize_and_record_benchmark.h
cc/layers/content_layer.cc
cc/layers/content_layer_client.h
cc/layers/picture_image_layer.cc
cc/layers/picture_image_layer.h
cc/layers/picture_image_layer_unittest.cc
cc/layers/picture_layer.cc
cc/layers/picture_layer_impl_unittest.cc
cc/layers/picture_layer_unittest.cc
cc/resources/display_list_recording_source.cc
cc/resources/display_list_recording_source.h
cc/resources/picture.cc
cc/resources/picture.h
cc/resources/picture_pile.cc
cc/resources/picture_pile.h
cc/resources/picture_pile_unittest.cc
cc/resources/picture_unittest.cc
cc/resources/recording_source.h
cc/test/fake_content_layer_client.cc
cc/test/fake_content_layer_client.h
cc/test/fake_picture_pile_impl.cc
cc/test/solid_color_content_layer_client.cc
cc/test/solid_color_content_layer_client.h
cc/trees/layer_tree_host_common_unittest.cc
cc/trees/layer_tree_host_pixeltest_masks.cc
cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc
cc/trees/layer_tree_host_unittest.cc
tools/perf/measurements/rasterize_and_record_micro.py
ui/compositor/layer.cc
ui/compositor/layer.h