summaryrefslogtreecommitdiffstats
path: root/cc/cc_tests.gyp
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-17 22:53:03 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-17 22:53:03 +0000
commit232576862622e4327e996e34faf684b29d8d4ed6 (patch)
treeea01b04569eaa856228579249742d6e1b3ec433f /cc/cc_tests.gyp
parente7370aeb6fe2b18fa3e46f5e87196cc1563f4d97 (diff)
downloadchromium_src-232576862622e4327e996e34faf684b29d8d4ed6.zip
chromium_src-232576862622e4327e996e34faf684b29d8d4ed6.tar.gz
chromium_src-232576862622e4327e996e34faf684b29d8d4ed6.tar.bz2
cc: Cache the twin tree's layer in PictureLayerImpl.
The PictureLayerImpl uses its twin layer to do various things and every time it wants to find its twin, it has to go through the LayerTreeImpl and its hash map. Specifically, every time we create a Tile, we check make use of the layer's twin, so we do this same lookup hundreds of times per layer in order to UpdateTilePriorities. This change makes PictureLayerImpl compute the twin layer once and save it. The ImplSidePaintingPerfTest.HeavyPage perf test shows the improvement with a 10% reduction in time. Before: *RESULT heavy_layer_tree: commit_cost= 0.97 ms/commit After: *RESULT heavy_layer_tree: commit_cost= 0.89 ms/commit Tests: LayerTreeHostPictureTestTwinLayer R=enne BUG=239684 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15115004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/cc_tests.gyp')
-rw-r--r--cc/cc_tests.gyp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/cc_tests.gyp b/cc/cc_tests.gyp
index 85e5f10..306a7f8 100644
--- a/cc/cc_tests.gyp
+++ b/cc/cc_tests.gyp
@@ -79,6 +79,7 @@
'trees/layer_tree_host_unittest_damage.cc',
'trees/layer_tree_host_unittest_delegated.cc',
'trees/layer_tree_host_unittest_occlusion.cc',
+ 'trees/layer_tree_host_unittest_picture.cc',
'trees/layer_tree_host_unittest_scroll.cc',
'trees/layer_tree_host_unittest_video.cc',
'trees/occlusion_tracker_unittest.cc',
@@ -108,6 +109,10 @@
'test/fake_layer_tree_host_impl_client.cc',
'test/fake_layer_tree_host_impl_client.h',
'test/fake_layer_tree_host_impl.h',
+ 'test/fake_picture_layer.cc',
+ 'test/fake_picture_layer.h',
+ 'test/fake_picture_layer_impl.cc',
+ 'test/fake_picture_layer_impl.h',
'test/fake_picture_layer_tiling_client.cc',
'test/fake_picture_layer_tiling_client.h',
'test/fake_picture_pile_impl.cc',