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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 ResourceUpdateQueue* queue) { | 694 ResourceUpdateQueue* queue) { |
695 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers"); | 695 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers"); |
696 | 696 |
697 LayerList update_list; { | 697 LayerList update_list; { |
698 Layer* root_scroll = FindFirstScrollableLayer(root_layer); | 698 Layer* root_scroll = FindFirstScrollableLayer(root_layer); |
699 if (root_scroll) | 699 if (root_scroll) |
700 root_scroll->SetImplTransform(impl_transform_); | 700 root_scroll->SetImplTransform(impl_transform_); |
701 | 701 |
702 UpdateHudLayer(); | 702 UpdateHudLayer(); |
703 | 703 |
704 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::calcDrawProps"); | 704 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps"); |
705 LayerTreeHostCommon::CalculateDrawProperties( | 705 LayerTreeHostCommon::CalculateDrawProperties( |
706 root_layer, | 706 root_layer, |
707 device_viewport_size(), | 707 device_viewport_size(), |
708 device_scale_factor_, | 708 device_scale_factor_, |
709 page_scale_factor_, | 709 page_scale_factor_, |
710 GetRendererCapabilities().max_texture_size, | 710 GetRendererCapabilities().max_texture_size, |
711 settings_.can_use_lcd_text, | 711 settings_.can_use_lcd_text, |
712 &update_list); | 712 &update_list); |
713 } | 713 } |
714 | 714 |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 SetAnimationEventsRecursive(events, | 1047 SetAnimationEventsRecursive(events, |
1048 layer->children()[child_index].get(), | 1048 layer->children()[child_index].get(), |
1049 wall_clock_time); | 1049 wall_clock_time); |
1050 } | 1050 } |
1051 | 1051 |
1052 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { | 1052 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { |
1053 return proxy_->CapturePicture(); | 1053 return proxy_->CapturePicture(); |
1054 } | 1054 } |
1055 | 1055 |
1056 } // namespace cc | 1056 } // namespace cc |
OLD | NEW |