| 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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 state->EndArray(); | 1347 state->EndArray(); |
| 1348 | 1348 |
| 1349 state->BeginArray("pictures"); | 1349 state->BeginArray("pictures"); |
| 1350 pile_->AsValueInto(state); | 1350 pile_->AsValueInto(state); |
| 1351 state->EndArray(); | 1351 state->EndArray(); |
| 1352 | 1352 |
| 1353 state->BeginArray("invalidation"); | 1353 state->BeginArray("invalidation"); |
| 1354 invalidation_.AsValueInto(state); | 1354 invalidation_.AsValueInto(state); |
| 1355 state->EndArray(); | 1355 state->EndArray(); |
| 1356 | 1356 |
| 1357 state->SetBoolean("invalidation_includes_first_paint", |
| 1358 includes_first_paint_invalidation()); |
| 1359 |
| 1357 state->BeginArray("coverage_tiles"); | 1360 state->BeginArray("coverage_tiles"); |
| 1358 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(), | 1361 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(), |
| 1359 contents_scale_x(), | 1362 contents_scale_x(), |
| 1360 gfx::Rect(content_bounds()), | 1363 gfx::Rect(content_bounds()), |
| 1361 ideal_contents_scale_); | 1364 ideal_contents_scale_); |
| 1362 iter; | 1365 iter; |
| 1363 ++iter) { | 1366 ++iter) { |
| 1364 state->BeginDictionary(); | 1367 state->BeginDictionary(); |
| 1365 | 1368 |
| 1366 state->BeginArray("geometry_rect"); | 1369 state->BeginArray("geometry_rect"); |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1697 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); | 1700 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); |
| 1698 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; | 1701 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; |
| 1699 return tiling_range.end - 1 - current_tiling_range_offset; | 1702 return tiling_range.end - 1 - current_tiling_range_offset; |
| 1700 } | 1703 } |
| 1701 } | 1704 } |
| 1702 NOTREACHED(); | 1705 NOTREACHED(); |
| 1703 return 0; | 1706 return 0; |
| 1704 } | 1707 } |
| 1705 | 1708 |
| 1706 } // namespace cc | 1709 } // namespace cc |
| OLD | NEW |