Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 12472028: Part 1 of cc/ directory shuffles: base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/append_quads_data.h" 15 #include "cc/append_quads_data.h"
16 #include "cc/base/math_util.h"
17 #include "cc/base/util.h"
16 #include "cc/compositor_frame_metadata.h" 18 #include "cc/compositor_frame_metadata.h"
17 #include "cc/damage_tracker.h" 19 #include "cc/damage_tracker.h"
18 #include "cc/debug_rect_history.h" 20 #include "cc/debug_rect_history.h"
19 #include "cc/delay_based_time_source.h" 21 #include "cc/delay_based_time_source.h"
20 #include "cc/delegating_renderer.h" 22 #include "cc/delegating_renderer.h"
21 #include "cc/frame_rate_counter.h" 23 #include "cc/frame_rate_counter.h"
22 #include "cc/gl_renderer.h" 24 #include "cc/gl_renderer.h"
23 #include "cc/heads_up_display_layer_impl.h" 25 #include "cc/heads_up_display_layer_impl.h"
24 #include "cc/layer_iterator.h" 26 #include "cc/layer_iterator.h"
25 #include "cc/layer_tree_host.h" 27 #include "cc/layer_tree_host.h"
26 #include "cc/layer_tree_host_common.h" 28 #include "cc/layer_tree_host_common.h"
27 #include "cc/layer_tree_impl.h" 29 #include "cc/layer_tree_impl.h"
28 #include "cc/math_util.h"
29 #include "cc/memory_history.h" 30 #include "cc/memory_history.h"
30 #include "cc/overdraw_metrics.h" 31 #include "cc/overdraw_metrics.h"
31 #include "cc/page_scale_animation.h" 32 #include "cc/page_scale_animation.h"
32 #include "cc/paint_time_counter.h" 33 #include "cc/paint_time_counter.h"
33 #include "cc/picture_layer_tiling.h" 34 #include "cc/picture_layer_tiling.h"
34 #include "cc/prioritized_resource_manager.h" 35 #include "cc/prioritized_resource_manager.h"
35 #include "cc/quad_culler.h" 36 #include "cc/quad_culler.h"
36 #include "cc/render_pass_draw_quad.h" 37 #include "cc/render_pass_draw_quad.h"
37 #include "cc/rendering_stats.h" 38 #include "cc/rendering_stats.h"
38 #include "cc/scrollbar_animation_controller.h" 39 #include "cc/scrollbar_animation_controller.h"
39 #include "cc/scrollbar_layer_impl.h" 40 #include "cc/scrollbar_layer_impl.h"
40 #include "cc/shared_quad_state.h" 41 #include "cc/shared_quad_state.h"
41 #include "cc/single_thread_proxy.h" 42 #include "cc/single_thread_proxy.h"
42 #include "cc/software_renderer.h" 43 #include "cc/software_renderer.h"
43 #include "cc/solid_color_draw_quad.h" 44 #include "cc/solid_color_draw_quad.h"
44 #include "cc/texture_uploader.h" 45 #include "cc/texture_uploader.h"
45 #include "cc/top_controls_manager.h" 46 #include "cc/top_controls_manager.h"
46 #include "cc/tree_synchronizer.h" 47 #include "cc/tree_synchronizer.h"
47 #include "cc/util.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"
50 50
51 namespace { 51 namespace {
52 52
53 void DidVisibilityChange(cc::LayerTreeHostImpl* id, bool visible) { 53 void DidVisibilityChange(cc::LayerTreeHostImpl* id, bool visible) {
54 if (visible) { 54 if (visible) {
55 TRACE_EVENT_ASYNC_BEGIN1("webkit", 55 TRACE_EVENT_ASYNC_BEGIN1("webkit",
56 "LayerTreeHostImpl::SetVisible", 56 "LayerTreeHostImpl::SetVisible",
57 id, 57 id,
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 tile_manager_->SetRecordRenderingStats(debug_state_.recordRenderingStats()); 1922 tile_manager_->SetRecordRenderingStats(debug_state_.recordRenderingStats());
1923 } 1923 }
1924 1924
1925 void LayerTreeHostImpl::SavePaintTime(const base::TimeDelta& total_paint_time, 1925 void LayerTreeHostImpl::SavePaintTime(const base::TimeDelta& total_paint_time,
1926 int commit_number) { 1926 int commit_number) {
1927 DCHECK(debug_state_.continuousPainting); 1927 DCHECK(debug_state_.continuousPainting);
1928 paint_time_counter_->SavePaintTime(total_paint_time, commit_number); 1928 paint_time_counter_->SavePaintTime(total_paint_time, commit_number);
1929 } 1929 }
1930 1930
1931 } // namespace cc 1931 } // namespace cc
OLDNEW
« cc/cc.gyp ('K') | « cc/layer_tree_host_impl.h ('k') | cc/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698