diff options
author | vmpstr <vmpstr@chromium.org> | 2014-08-27 11:11:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-27 18:12:08 +0000 |
commit | d7de03c45e06e104e3ba022e240f7bc88315e753 (patch) | |
tree | cdf42e78c47aca5cd424c1ea06ba24c61ba275d5 /cc/layers/layer_impl.h | |
parent | 5d4f2af9a63ff2bbf24a0baccc2b22952582f20a (diff) | |
download | chromium_src-d7de03c45e06e104e3ba022e240f7bc88315e753.zip chromium_src-d7de03c45e06e104e3ba022e240f7bc88315e753.tar.gz chromium_src-d7de03c45e06e104e3ba022e240f7bc88315e753.tar.bz2 |
cc: Report only on active tiles in tracing.
This patch changes which tiles we report on. Previously, we logged
all of the available tiles. Now, we only log tiles that are active.
That is, only tiles that are on either active or pending trees are
logged.
The way this is done is as follows:
- Walk the tree, layers, tilings
- Insert all tiles from a tiling into a set
- Stuff those into a trace.
BUG=403094
Review URL: https://codereview.chromium.org/493543002
Cr-Commit-Position: refs/heads/master@{#292183}
Diffstat (limited to 'cc/layers/layer_impl.h')
-rw-r--r-- | cc/layers/layer_impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h index 8af8c3d..c10710c 100644 --- a/cc/layers/layer_impl.h +++ b/cc/layers/layer_impl.h @@ -523,6 +523,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); virtual void PushPropertiesTo(LayerImpl* layer); + virtual void GetAllTilesForTracing(std::set<const Tile*>* tiles) const; virtual void AsValueInto(base::debug::TracedValue* dict) const; virtual size_t GPUMemoryUsageInBytes() const; |