OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |