| 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 ResourceUpdateQueue* queue) { | 684 ResourceUpdateQueue* queue) { |
| 685 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers"); | 685 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers"); |
| 686 | 686 |
| 687 LayerList update_list; { | 687 LayerList update_list; { |
| 688 Layer* root_scroll = FindFirstScrollableLayer(root_layer); | 688 Layer* root_scroll = FindFirstScrollableLayer(root_layer); |
| 689 if (root_scroll) | 689 if (root_scroll) |
| 690 root_scroll->SetImplTransform(impl_transform_); | 690 root_scroll->SetImplTransform(impl_transform_); |
| 691 | 691 |
| 692 UpdateHudLayer(); | 692 UpdateHudLayer(); |
| 693 | 693 |
| 694 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::calcDrawProps"); | 694 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps"); |
| 695 LayerTreeHostCommon::CalculateDrawProperties( | 695 LayerTreeHostCommon::CalculateDrawProperties( |
| 696 root_layer, | 696 root_layer, |
| 697 device_viewport_size(), | 697 device_viewport_size(), |
| 698 device_scale_factor_, | 698 device_scale_factor_, |
| 699 page_scale_factor_, | 699 page_scale_factor_, |
| 700 GetRendererCapabilities().max_texture_size, | 700 GetRendererCapabilities().max_texture_size, |
| 701 settings_.can_use_lcd_text, | 701 settings_.can_use_lcd_text, |
| 702 &update_list); | 702 &update_list); |
| 703 } | 703 } |
| 704 | 704 |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 SetAnimationEventsRecursive(events, | 1037 SetAnimationEventsRecursive(events, |
| 1038 layer->children()[child_index].get(), | 1038 layer->children()[child_index].get(), |
| 1039 wall_clock_time); | 1039 wall_clock_time); |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { | 1042 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { |
| 1043 return proxy_->CapturePicture(); | 1043 return proxy_->CapturePicture(); |
| 1044 } | 1044 } |
| 1045 | 1045 |
| 1046 } // namespace cc | 1046 } // namespace cc |
| OLD | NEW |