| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 needs_full_tree_sync_(true), | 77 needs_full_tree_sync_(true), |
| 78 needs_filter_context_(false), | 78 needs_filter_context_(false), |
| 79 client_(client), | 79 client_(client), |
| 80 commit_number_(0), | 80 commit_number_(0), |
| 81 rendering_stats_instrumentation_(RenderingStatsInstrumentation::Create()), | 81 rendering_stats_instrumentation_(RenderingStatsInstrumentation::Create()), |
| 82 renderer_initialized_(false), | 82 renderer_initialized_(false), |
| 83 output_surface_lost_(false), | 83 output_surface_lost_(false), |
| 84 num_failed_recreate_attempts_(0), | 84 num_failed_recreate_attempts_(0), |
| 85 settings_(settings), | 85 settings_(settings), |
| 86 debug_state_(settings.initial_debug_state), | 86 debug_state_(settings.initial_debug_state), |
| 87 overdraw_bottom_height_(0.f), |
| 87 device_scale_factor_(1.f), | 88 device_scale_factor_(1.f), |
| 88 visible_(true), | 89 visible_(true), |
| 89 page_scale_factor_(1.f), | 90 page_scale_factor_(1.f), |
| 90 min_page_scale_factor_(1.f), | 91 min_page_scale_factor_(1.f), |
| 91 max_page_scale_factor_(1.f), | 92 max_page_scale_factor_(1.f), |
| 92 overdraw_bottom_height_(0.f), | |
| 93 trigger_idle_updates_(true), | 93 trigger_idle_updates_(true), |
| 94 background_color_(SK_ColorWHITE), | 94 background_color_(SK_ColorWHITE), |
| 95 has_transparent_background_(false), | 95 has_transparent_background_(false), |
| 96 partial_texture_update_requests_(0) { | 96 partial_texture_update_requests_(0) { |
| 97 if (settings_.accelerated_animation_enabled) | 97 if (settings_.accelerated_animation_enabled) |
| 98 animation_registrar_ = AnimationRegistrar::Create(); | 98 animation_registrar_ = AnimationRegistrar::Create(); |
| 99 s_num_layer_tree_instances++; | 99 s_num_layer_tree_instances++; |
| 100 | 100 |
| 101 rendering_stats_instrumentation_->set_record_rendering_stats( | 101 rendering_stats_instrumentation_->set_record_rendering_stats( |
| 102 debug_state_.RecordRenderingStats()); | 102 debug_state_.RecordRenderingStats()); |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 SetAnimationEventsRecursive(events, | 1056 SetAnimationEventsRecursive(events, |
| 1057 layer->children()[child_index].get(), | 1057 layer->children()[child_index].get(), |
| 1058 wall_clock_time); | 1058 wall_clock_time); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { | 1061 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { |
| 1062 return proxy_->CapturePicture(); | 1062 return proxy_->CapturePicture(); |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 } // namespace cc | 1065 } // namespace cc |
| OLD | NEW |