| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 pinch_zoom_scrollbar_vertical_->id() : Layer::INVALID_ID); | 344 pinch_zoom_scrollbar_vertical_->id() : Layer::INVALID_ID); |
| 345 | 345 |
| 346 if (!settings_.impl_side_painting) { | 346 if (!settings_.impl_side_painting) { |
| 347 // If we're not in impl-side painting, the tree is immediately | 347 // If we're not in impl-side painting, the tree is immediately |
| 348 // considered active. | 348 // considered active. |
| 349 sync_tree->DidBecomeActive(); | 349 sync_tree->DidBecomeActive(); |
| 350 } | 350 } |
| 351 | 351 |
| 352 if (debug_state_.continuous_painting) { | 352 if (debug_state_.continuous_painting) { |
| 353 host_impl->SavePaintTime( | 353 host_impl->SavePaintTime( |
| 354 rendering_stats_instrumentation_->GetRenderingStats().totalPaintTime, | 354 rendering_stats_instrumentation_->GetRenderingStats().total_paint_time, |
| 355 commit_number() | 355 commit_number() |
| 356 ); | 356 ); |
| 357 } | 357 } |
| 358 | 358 |
| 359 commit_number_++; | 359 commit_number_++; |
| 360 } | 360 } |
| 361 | 361 |
| 362 void LayerTreeHost::SetPinchZoomScrollbarsBoundsAndPosition() { | 362 void LayerTreeHost::SetPinchZoomScrollbarsBoundsAndPosition() { |
| 363 if (!pinch_zoom_scrollbar_horizontal_ || !pinch_zoom_scrollbar_vertical_) | 363 if (!pinch_zoom_scrollbar_horizontal_ || !pinch_zoom_scrollbar_vertical_) |
| 364 return; | 364 return; |
| (...skipping 672 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 |