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 | 9 |
10 #include "base/debug/trace_event_argument.h" | 10 #include "base/debug/trace_event_argument.h" |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 state->EndArray(); | 1401 state->EndArray(); |
1402 | 1402 |
1403 state->BeginArray("pictures"); | 1403 state->BeginArray("pictures"); |
1404 pile_->AsValueInto(state); | 1404 pile_->AsValueInto(state); |
1405 state->EndArray(); | 1405 state->EndArray(); |
1406 | 1406 |
1407 state->BeginArray("invalidation"); | 1407 state->BeginArray("invalidation"); |
1408 invalidation_.AsValueInto(state); | 1408 invalidation_.AsValueInto(state); |
1409 state->EndArray(); | 1409 state->EndArray(); |
1410 | 1410 |
| 1411 state->SetBoolean( |
| 1412 "invalidation_includes_first_paint", |
| 1413 debug_info() && debug_info()->IncludesFirstPaintInvalidation()); |
| 1414 |
1411 state->BeginArray("coverage_tiles"); | 1415 state->BeginArray("coverage_tiles"); |
1412 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(), | 1416 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(), |
1413 contents_scale_x(), | 1417 contents_scale_x(), |
1414 gfx::Rect(content_bounds()), | 1418 gfx::Rect(content_bounds()), |
1415 ideal_contents_scale_); | 1419 ideal_contents_scale_); |
1416 iter; | 1420 iter; |
1417 ++iter) { | 1421 ++iter) { |
1418 state->BeginDictionary(); | 1422 state->BeginDictionary(); |
1419 | 1423 |
1420 state->BeginArray("geometry_rect"); | 1424 state->BeginArray("geometry_rect"); |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1751 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); | 1755 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); |
1752 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; | 1756 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; |
1753 return tiling_range.end - 1 - current_tiling_range_offset; | 1757 return tiling_range.end - 1 - current_tiling_range_offset; |
1754 } | 1758 } |
1755 } | 1759 } |
1756 NOTREACHED(); | 1760 NOTREACHED(); |
1757 return 0; | 1761 return 0; |
1758 } | 1762 } |
1759 | 1763 |
1760 } // namespace cc | 1764 } // namespace cc |
OLD | NEW |