| 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.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 base::debug::TraceLog::GetInstance() && | 884 base::debug::TraceLog::GetInstance() && |
| 885 base::debug::TraceLog::GetInstance()->IsEnabled(); | 885 base::debug::TraceLog::GetInstance()->IsEnabled(); |
| 886 OcclusionTracker occlusion_tracker( | 886 OcclusionTracker occlusion_tracker( |
| 887 root_layer_->render_surface()->content_rect(), record_metrics_for_frame); | 887 root_layer_->render_surface()->content_rect(), record_metrics_for_frame); |
| 888 occlusion_tracker.set_minimum_tracking_size( | 888 occlusion_tracker.set_minimum_tracking_size( |
| 889 settings_.minimum_occlusion_tracking_size); | 889 settings_.minimum_occlusion_tracking_size); |
| 890 | 890 |
| 891 PrioritizeTextures(render_surface_layer_list, | 891 PrioritizeTextures(render_surface_layer_list, |
| 892 occlusion_tracker.overdraw_metrics()); | 892 occlusion_tracker.overdraw_metrics()); |
| 893 | 893 |
| 894 printf("LayerTreeHost::PaintLayerContents\n"); |
| 895 |
| 894 // TODO(egraether): Use RenderingStatsInstrumentation in Layer::update() | 896 // TODO(egraether): Use RenderingStatsInstrumentation in Layer::update() |
| 895 RenderingStats stats; | 897 RenderingStats stats; |
| 896 RenderingStats* stats_ptr = | 898 RenderingStats* stats_ptr = |
| 897 debug_state_.RecordRenderingStats() ? &stats : NULL; | 899 debug_state_.RecordRenderingStats() ? &stats : NULL; |
| 898 | 900 |
| 899 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list); | 901 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list); |
| 900 for (LayerIteratorType it = | 902 for (LayerIteratorType it = |
| 901 LayerIteratorType::Begin(&render_surface_layer_list); | 903 LayerIteratorType::Begin(&render_surface_layer_list); |
| 902 it != end; | 904 it != end; |
| 903 ++it) { | 905 ++it) { |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 SetAnimationEventsRecursive(events, | 1079 SetAnimationEventsRecursive(events, |
| 1078 layer->children()[child_index].get(), | 1080 layer->children()[child_index].get(), |
| 1079 wall_clock_time); | 1081 wall_clock_time); |
| 1080 } | 1082 } |
| 1081 | 1083 |
| 1082 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { | 1084 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { |
| 1083 return proxy_->CapturePicture(); | 1085 return proxy_->CapturePicture(); |
| 1084 } | 1086 } |
| 1085 | 1087 |
| 1086 } // namespace cc | 1088 } // namespace cc |
| OLD | NEW |