From 372bad5f74bce22b5a09ecba66744079e64dc477 Mon Sep 17 00:00:00 2001 From: "egraether@chromium.org" Date: Thu, 21 Mar 2013 16:38:43 +0000 Subject: cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats This change adds the class RenderingStatsInstrumentation that manages conditional saving and thread-specific access to a private RenderingStats instance. An instance of RenderingStatsRecorder is created on LayerTreeHost, which passes references to LayerTreeHostImpl and TileManager. Access to reading and writing on the internal RenderingStats instance is guarded by a lock. All rendering stats saving in LayerTreeHost, Single-/ThreadProxy, LayerTreeHostImpl and TileManager has been switched to use the RenderingStatsInstrumentation. Stats collection within Layer::update() still follows the original structure to keep this change small. BUG=181319 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189475 Review URL: https://chromiumcodereview.appspot.com/12519006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189621 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/test/fake_picture_layer_tiling_client.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cc/test/fake_picture_layer_tiling_client.h') diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h index 9f2e77d..0dd9717 100644 --- a/cc/test/fake_picture_layer_tiling_client.h +++ b/cc/test/fake_picture_layer_tiling_client.h @@ -9,6 +9,7 @@ #include "cc/resources/picture_pile_impl.h" #include "cc/resources/tile.h" #include "cc/resources/tile_manager.h" +#include "cc/test/fake_rendering_stats_instrumentation.h" #include "cc/test/fake_tile_manager_client.h" #include "ui/gfx/rect.h" @@ -32,6 +33,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient { protected: FakeTileManagerClient tile_manager_client_; + FakeRenderingStatsInstrumentation stats_instrumentation_; TileManager tile_manager_; scoped_refptr pile_; gfx::Size tile_size_; -- cgit v1.1