diff options
author | danakj <danakj@chromium.org> | 2014-09-12 19:56:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-13 02:58:02 +0000 |
commit | 3895556f535fe8c10a732612cb2c982d8137898c (patch) | |
tree | 2d1ed439e6b8f82158522b524d99a24ca4031c14 /cc/layers/picture_layer_impl.cc | |
parent | cc4e60d8239b6e8b2cddb44e929cd39ff8e63722 (diff) | |
download | chromium_src-3895556f535fe8c10a732612cb2c982d8137898c.zip chromium_src-3895556f535fe8c10a732612cb2c982d8137898c.tar.gz chromium_src-3895556f535fe8c10a732612cb2c982d8137898c.tar.bz2 |
cc: Add some useful layer data to traces.
These traces were really helpful in tracking out why things were getting
prioritized wrong.
BUG=410625
Review URL: https://codereview.chromium.org/568183002
Cr-Commit-Position: refs/heads/master@{#294728}
Diffstat (limited to 'cc/layers/picture_layer_impl.cc')
-rw-r--r-- | cc/layers/picture_layer_impl.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc index 9dfb054..f14bdc6 100644 --- a/cc/layers/picture_layer_impl.cc +++ b/cc/layers/picture_layer_impl.cc @@ -1409,6 +1409,14 @@ void PictureLayerImpl::AsValueInto(base::debug::TracedValue* state) const { tilings_->AsValueInto(state); state->EndArray(); + state->BeginArray("tile_priority_rect"); + MathUtil::AddToTracedValue(GetViewportForTilePriorityInContentSpace(), state); + state->EndArray(); + + state->BeginArray("visible_rect"); + MathUtil::AddToTracedValue(visible_content_rect(), state); + state->EndArray(); + state->BeginArray("pictures"); pile_->AsValueInto(state); state->EndArray(); |