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_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 LayerTreeHostCommon::CalculateDrawProperties(&inputs); | 503 LayerTreeHostCommon::CalculateDrawProperties(&inputs); |
504 } | 504 } |
505 | 505 |
506 { | 506 { |
507 TRACE_EVENT2("cc", | 507 TRACE_EVENT2("cc", |
508 "LayerTreeImpl::UpdateTilePriorities", | 508 "LayerTreeImpl::UpdateTilePriorities", |
509 "IsActive", | 509 "IsActive", |
510 IsActiveTree(), | 510 IsActiveTree(), |
511 "SourceFrameNumber", | 511 "SourceFrameNumber", |
512 source_frame_number_); | 512 source_frame_number_); |
513 scoped_ptr<OcclusionTracker<LayerImpl> > occlusion_tracker; | 513 scoped_ptr<OcclusionTracker<LayerImpl>> occlusion_tracker; |
514 if (settings().use_occlusion_for_tile_prioritization) { | 514 if (settings().use_occlusion_for_tile_prioritization) { |
515 occlusion_tracker.reset(new OcclusionTracker<LayerImpl>( | 515 occlusion_tracker.reset(new OcclusionTracker<LayerImpl>( |
516 root_layer()->render_surface()->content_rect())); | 516 root_layer()->render_surface()->content_rect())); |
517 occlusion_tracker->set_minimum_tracking_size( | 517 occlusion_tracker->set_minimum_tracking_size( |
518 settings().minimum_occlusion_tracking_size); | 518 settings().minimum_occlusion_tracking_size); |
519 } | 519 } |
520 | 520 |
521 bool resourceless_software_draw = (layer_tree_host_impl_->GetDrawMode() == | 521 bool resourceless_software_draw = (layer_tree_host_impl_->GetDrawMode() == |
522 DRAW_MODE_RESOURCELESS_SOFTWARE); | 522 DRAW_MODE_RESOURCELESS_SOFTWARE); |
523 | 523 |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 page_scale, | 1516 page_scale, |
1517 duration.InSecondsF()); | 1517 duration.InSecondsF()); |
1518 } | 1518 } |
1519 } | 1519 } |
1520 | 1520 |
1521 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { | 1521 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { |
1522 return page_scale_animation_.Pass(); | 1522 return page_scale_animation_.Pass(); |
1523 } | 1523 } |
1524 | 1524 |
1525 } // namespace cc | 1525 } // namespace cc |
OLD | NEW |