Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 568183002: cc: Add some useful layer data to traces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 10
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 1404
1405 void PictureLayerImpl::AsValueInto(base::debug::TracedValue* state) const { 1405 void PictureLayerImpl::AsValueInto(base::debug::TracedValue* state) const {
1406 const_cast<PictureLayerImpl*>(this)->DoPostCommitInitializationIfNeeded(); 1406 const_cast<PictureLayerImpl*>(this)->DoPostCommitInitializationIfNeeded();
1407 LayerImpl::AsValueInto(state); 1407 LayerImpl::AsValueInto(state);
1408 state->SetDouble("ideal_contents_scale", ideal_contents_scale_); 1408 state->SetDouble("ideal_contents_scale", ideal_contents_scale_);
1409 state->SetDouble("geometry_contents_scale", MaximumTilingContentsScale()); 1409 state->SetDouble("geometry_contents_scale", MaximumTilingContentsScale());
1410 state->BeginArray("tilings"); 1410 state->BeginArray("tilings");
1411 tilings_->AsValueInto(state); 1411 tilings_->AsValueInto(state);
1412 state->EndArray(); 1412 state->EndArray();
1413 1413
1414 state->BeginArray("tile_priority_rect");
1415 MathUtil::AddToTracedValue(GetViewportForTilePriorityInContentSpace(), state);
1416 state->EndArray();
1417
1418 state->BeginArray("visible_rect");
1419 MathUtil::AddToTracedValue(visible_content_rect(), state);
1420 state->EndArray();
1421
1414 state->BeginArray("pictures"); 1422 state->BeginArray("pictures");
1415 pile_->AsValueInto(state); 1423 pile_->AsValueInto(state);
1416 state->EndArray(); 1424 state->EndArray();
1417 1425
1418 state->BeginArray("invalidation"); 1426 state->BeginArray("invalidation");
1419 invalidation_.AsValueInto(state); 1427 invalidation_.AsValueInto(state);
1420 state->EndArray(); 1428 state->EndArray();
1421 1429
1422 state->BeginArray("coverage_tiles"); 1430 state->BeginArray("coverage_tiles");
1423 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(), 1431 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(),
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1766 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); 1774 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange();
1767 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; 1775 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start;
1768 return tiling_range.end - 1 - current_tiling_range_offset; 1776 return tiling_range.end - 1 - current_tiling_range_offset;
1769 } 1777 }
1770 } 1778 }
1771 NOTREACHED(); 1779 NOTREACHED();
1772 return 0; 1780 return 0;
1773 } 1781 }
1774 1782
1775 } // namespace cc 1783 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698