| 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/layer_tree_host_impl.h" | 5 #include "cc/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| 11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "cc/animation/scrollbar_animation_controller.h" |
| 15 #include "cc/append_quads_data.h" | 16 #include "cc/append_quads_data.h" |
| 16 #include "cc/base/math_util.h" | 17 #include "cc/base/math_util.h" |
| 17 #include "cc/base/util.h" | 18 #include "cc/base/util.h" |
| 18 #include "cc/compositor_frame_metadata.h" | 19 #include "cc/compositor_frame_metadata.h" |
| 19 #include "cc/damage_tracker.h" | 20 #include "cc/damage_tracker.h" |
| 20 #include "cc/debug/debug_rect_history.h" | 21 #include "cc/debug/debug_rect_history.h" |
| 21 #include "cc/debug/frame_rate_counter.h" | 22 #include "cc/debug/frame_rate_counter.h" |
| 22 #include "cc/debug/overdraw_metrics.h" | 23 #include "cc/debug/overdraw_metrics.h" |
| 23 #include "cc/debug/paint_time_counter.h" | 24 #include "cc/debug/paint_time_counter.h" |
| 24 #include "cc/debug/rendering_stats.h" | 25 #include "cc/debug/rendering_stats.h" |
| 25 #include "cc/delay_based_time_source.h" | 26 #include "cc/delay_based_time_source.h" |
| 26 #include "cc/delegating_renderer.h" | 27 #include "cc/delegating_renderer.h" |
| 27 #include "cc/gl_renderer.h" | 28 #include "cc/gl_renderer.h" |
| 28 #include "cc/heads_up_display_layer_impl.h" | 29 #include "cc/heads_up_display_layer_impl.h" |
| 29 #include "cc/layer_iterator.h" | 30 #include "cc/layer_iterator.h" |
| 30 #include "cc/layer_tree_host.h" | 31 #include "cc/layer_tree_host.h" |
| 31 #include "cc/layer_tree_host_common.h" | 32 #include "cc/layer_tree_host_common.h" |
| 32 #include "cc/layer_tree_impl.h" | 33 #include "cc/layer_tree_impl.h" |
| 33 #include "cc/memory_history.h" | 34 #include "cc/memory_history.h" |
| 34 #include "cc/page_scale_animation.h" | 35 #include "cc/page_scale_animation.h" |
| 35 #include "cc/picture_layer_tiling.h" | 36 #include "cc/picture_layer_tiling.h" |
| 36 #include "cc/prioritized_resource_manager.h" | 37 #include "cc/prioritized_resource_manager.h" |
| 37 #include "cc/quad_culler.h" | 38 #include "cc/quad_culler.h" |
| 38 #include "cc/render_pass_draw_quad.h" | 39 #include "cc/render_pass_draw_quad.h" |
| 39 #include "cc/scrollbar_animation_controller.h" | |
| 40 #include "cc/scrollbar_layer_impl.h" | 40 #include "cc/scrollbar_layer_impl.h" |
| 41 #include "cc/shared_quad_state.h" | 41 #include "cc/shared_quad_state.h" |
| 42 #include "cc/single_thread_proxy.h" | 42 #include "cc/single_thread_proxy.h" |
| 43 #include "cc/software_renderer.h" | 43 #include "cc/software_renderer.h" |
| 44 #include "cc/solid_color_draw_quad.h" | 44 #include "cc/solid_color_draw_quad.h" |
| 45 #include "cc/texture_uploader.h" | 45 #include "cc/texture_uploader.h" |
| 46 #include "cc/top_controls_manager.h" | 46 #include "cc/top_controls_manager.h" |
| 47 #include "cc/tree_synchronizer.h" | 47 #include "cc/tree_synchronizer.h" |
| 48 #include "ui/gfx/size_conversions.h" | 48 #include "ui/gfx/size_conversions.h" |
| 49 #include "ui/gfx/vector2d_conversions.h" | 49 #include "ui/gfx/vector2d_conversions.h" |
| (...skipping 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1963 tile_manager_->SetRecordRenderingStats(debug_state_.recordRenderingStats()); | 1963 tile_manager_->SetRecordRenderingStats(debug_state_.recordRenderingStats()); |
| 1964 } | 1964 } |
| 1965 | 1965 |
| 1966 void LayerTreeHostImpl::SavePaintTime(const base::TimeDelta& total_paint_time, | 1966 void LayerTreeHostImpl::SavePaintTime(const base::TimeDelta& total_paint_time, |
| 1967 int commit_number) { | 1967 int commit_number) { |
| 1968 DCHECK(debug_state_.continuousPainting); | 1968 DCHECK(debug_state_.continuousPainting); |
| 1969 paint_time_counter_->SavePaintTime(total_paint_time, commit_number); | 1969 paint_time_counter_->SavePaintTime(total_paint_time, commit_number); |
| 1970 } | 1970 } |
| 1971 | 1971 |
| 1972 } // namespace cc | 1972 } // namespace cc |
| OLD | NEW |