diff options
author | egraether@chromium.org <egraether@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-21 00:01:23 +0000 |
---|---|---|
committer | egraether@chromium.org <egraether@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-21 00:01:23 +0000 |
commit | ed5af1cb0a27c65f1c468498eddf2f325351dc56 (patch) | |
tree | ae1326f7730110c1aac8b3c60e610c1431351136 /cc/test/fake_picture_layer_tiling_client.h | |
parent | 8550f0609f4bd88fe9565cdbebc262d8b4bbabdd (diff) | |
download | chromium_src-ed5af1cb0a27c65f1c468498eddf2f325351dc56.zip chromium_src-ed5af1cb0a27c65f1c468498eddf2f325351dc56.tar.gz chromium_src-ed5af1cb0a27c65f1c468498eddf2f325351dc56.tar.bz2 |
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
Review URL: https://chromiumcodereview.appspot.com/12519006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_layer_tiling_client.h')
-rw-r--r-- | cc/test/fake_picture_layer_tiling_client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h index 9f2e77d..25b653f 100644 --- a/cc/test/fake_picture_layer_tiling_client.h +++ b/cc/test/fake_picture_layer_tiling_client.h @@ -31,6 +31,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient { gfx::Size TileSize() const { return tile_size_; } protected: + scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; FakeTileManagerClient tile_manager_client_; TileManager tile_manager_; scoped_refptr<PicturePileImpl> pile_; |