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 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 | 854 |
855 AppendQuadsForLayer(target_render_pass, | 855 AppendQuadsForLayer(target_render_pass, |
856 *it, | 856 *it, |
857 occlusion_tracker, | 857 occlusion_tracker, |
858 &append_quads_data); | 858 &append_quads_data); |
859 } | 859 } |
860 | 860 |
861 ++layers_drawn; | 861 ++layers_drawn; |
862 } | 862 } |
863 | 863 |
| 864 rendering_stats_instrumentation_->AddVisibleContentArea( |
| 865 append_quads_data.visible_content_area); |
| 866 rendering_stats_instrumentation_->AddApproximatedVisibleContentArea( |
| 867 append_quads_data.approximated_visible_content_area); |
| 868 |
864 if (append_quads_data.num_missing_tiles) { | 869 if (append_quads_data.num_missing_tiles) { |
865 bool layer_has_animating_transform = | 870 bool layer_has_animating_transform = |
866 it->screen_space_transform_is_animating() || | 871 it->screen_space_transform_is_animating() || |
867 it->draw_transform_is_animating(); | 872 it->draw_transform_is_animating(); |
868 if (layer_has_animating_transform) { | 873 if (layer_has_animating_transform) { |
869 draw_result = | 874 draw_result = |
870 DrawSwapReadbackResult::DRAW_ABORTED_CHECKERBOARD_ANIMATIONS; | 875 DrawSwapReadbackResult::DRAW_ABORTED_CHECKERBOARD_ANIMATIONS; |
871 } | 876 } |
872 } | 877 } |
873 | 878 |
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3057 swap_promise_monitor_.erase(monitor); | 3062 swap_promise_monitor_.erase(monitor); |
3058 } | 3063 } |
3059 | 3064 |
3060 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { | 3065 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { |
3061 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 3066 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
3062 for (; it != swap_promise_monitor_.end(); it++) | 3067 for (; it != swap_promise_monitor_.end(); it++) |
3063 (*it)->OnSetNeedsRedrawOnImpl(); | 3068 (*it)->OnSetNeedsRedrawOnImpl(); |
3064 } | 3069 } |
3065 | 3070 |
3066 } // namespace cc | 3071 } // namespace cc |
OLD | NEW |