| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 } | 834 } |
| 835 } | 835 } |
| 836 | 836 |
| 837 ++layers_drawn; | 837 ++layers_drawn; |
| 838 } | 838 } |
| 839 | 839 |
| 840 rendering_stats_instrumentation_->AddVisibleContentArea( | 840 rendering_stats_instrumentation_->AddVisibleContentArea( |
| 841 append_quads_data.visible_content_area); | 841 append_quads_data.visible_content_area); |
| 842 rendering_stats_instrumentation_->AddApproximatedVisibleContentArea( | 842 rendering_stats_instrumentation_->AddApproximatedVisibleContentArea( |
| 843 append_quads_data.approximated_visible_content_area); | 843 append_quads_data.approximated_visible_content_area); |
| 844 rendering_stats_instrumentation_->AddCheckerboardedVisibleContentArea( |
| 845 append_quads_data.checkerboarded_visible_content_area); |
| 844 | 846 |
| 845 num_missing_tiles += append_quads_data.num_missing_tiles; | 847 num_missing_tiles += append_quads_data.num_missing_tiles; |
| 846 num_incomplete_tiles += append_quads_data.num_incomplete_tiles; | 848 num_incomplete_tiles += append_quads_data.num_incomplete_tiles; |
| 847 | 849 |
| 848 if (append_quads_data.num_missing_tiles) { | 850 if (append_quads_data.num_missing_tiles) { |
| 849 bool layer_has_animating_transform = | 851 bool layer_has_animating_transform = |
| 850 it->screen_space_transform_is_animating() || | 852 it->screen_space_transform_is_animating() || |
| 851 it->draw_transform_is_animating(); | 853 it->draw_transform_is_animating(); |
| 852 if (layer_has_animating_transform) | 854 if (layer_has_animating_transform) |
| 853 have_missing_animated_tiles = true; | 855 have_missing_animated_tiles = true; |
| (...skipping 2610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3464 new_target.SetToMin(layer_impl->MaxScrollOffset()); | 3466 new_target.SetToMin(layer_impl->MaxScrollOffset()); |
| 3465 | 3467 |
| 3466 curve->UpdateTarget( | 3468 curve->UpdateTarget( |
| 3467 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) | 3469 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) |
| 3468 .InSecondsF(), | 3470 .InSecondsF(), |
| 3469 new_target); | 3471 new_target); |
| 3470 | 3472 |
| 3471 return true; | 3473 return true; |
| 3472 } | 3474 } |
| 3473 } // namespace cc | 3475 } // namespace cc |
| OLD | NEW |