cc: turn on distance field text on animated layers
commit6a15e256edc14ad5c6f8d088a82c2f0b421a2d3d
authorhendrikw <hendrikw@chromium.org>
Wed, 22 Oct 2014 02:46:24 +0000 (21 19:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Oct 2014 04:03:54 +0000 (22 04:03 +0000)
treecb2f95a24a66639b09d3a0cf73c90be93bfc74a5
parent8273d966fa2217069d9d73fd58591a644be71843
cc: turn on distance field text on animated layers

PictureLayerImpl
* Rerasterize on every animated frame
* pass animated flag to picture pile

PicturePileImpl
* Store has_transform_animated, used as a transport to get data
  to GPU's RasterBufferImpl

ResourceProvider
* Provide a method to recreate the surface with the correct dff
  flag.
* Provide a method in the lock to set the dff setting
 * This has the side effect that the surface may be created
   twice for a new animated layer, but surface creation is
   cheap, I don't see this as a huge issue

RasterBufferImpl
* In playback, call the method on the lock to assign the dff
  setting that comes from the picture pile.

BUG=372391

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

Cr-Commit-Position: refs/heads/master@{#300626}
28 files changed:
cc/layers/picture_layer_impl.cc
cc/layers/picture_layer_impl_unittest.cc
cc/layers/tiled_layer_unittest.cc
cc/output/gl_renderer_unittest.cc
cc/output/overlay_unittest.cc
cc/output/renderer_unittest.cc
cc/output/software_renderer_unittest.cc
cc/resources/gpu_raster_worker_pool.cc
cc/resources/gpu_raster_worker_pool.h
cc/resources/picture_layer_tiling_perftest.cc
cc/resources/picture_layer_tiling_set_unittest.cc
cc/resources/picture_layer_tiling_unittest.cc
cc/resources/picture_pile_impl.cc
cc/resources/picture_pile_impl.h
cc/resources/prioritized_resource_unittest.cc
cc/resources/raster_worker_pool_perftest.cc
cc/resources/raster_worker_pool_unittest.cc
cc/resources/resource_provider.cc
cc/resources/resource_provider.h
cc/resources/resource_provider_unittest.cc
cc/resources/resource_update_controller_unittest.cc
cc/resources/scoped_resource_unittest.cc
cc/resources/video_resource_updater_unittest.cc
cc/surfaces/display.cc
cc/surfaces/surface_aggregator_unittest.cc
cc/test/pixel_test.cc
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_unittest_context.cc