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 <algorithm> | 7 #include <algorithm> |
8 #include <stack> | 8 #include <stack> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 SetNeedsCommit(); | 682 SetNeedsCommit(); |
683 } | 683 } |
684 | 684 |
685 void LayerTreeHost::SetVisible(bool visible) { | 685 void LayerTreeHost::SetVisible(bool visible) { |
686 if (visible_ == visible) | 686 if (visible_ == visible) |
687 return; | 687 return; |
688 visible_ = visible; | 688 visible_ = visible; |
689 proxy_->SetVisible(visible); | 689 proxy_->SetVisible(visible); |
690 } | 690 } |
691 | 691 |
692 void LayerTreeHost::SetLatencyInfo(const LatencyInfo& latency_info) { | 692 void LayerTreeHost::SetLatencyInfo(const ui::LatencyInfo& latency_info) { |
693 latency_info_.MergeWith(latency_info); | 693 latency_info_.MergeWith(latency_info); |
694 } | 694 } |
695 | 695 |
696 void LayerTreeHost::StartPageScaleAnimation(gfx::Vector2d target_offset, | 696 void LayerTreeHost::StartPageScaleAnimation(gfx::Vector2d target_offset, |
697 bool use_anchor, | 697 bool use_anchor, |
698 float scale, | 698 float scale, |
699 base::TimeDelta duration) { | 699 base::TimeDelta duration) { |
700 pending_page_scale_animation_.reset(new PendingPageScaleAnimation); | 700 pending_page_scale_animation_.reset(new PendingPageScaleAnimation); |
701 pending_page_scale_animation_->target_offset = target_offset; | 701 pending_page_scale_animation_->target_offset = target_offset; |
702 pending_page_scale_animation_->use_anchor = use_anchor; | 702 pending_page_scale_animation_->use_anchor = use_anchor; |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 bool start_ready_animations = true; | 1095 bool start_ready_animations = true; |
1096 (*iter).second->UpdateState(start_ready_animations, NULL); | 1096 (*iter).second->UpdateState(start_ready_animations, NULL); |
1097 } | 1097 } |
1098 } | 1098 } |
1099 | 1099 |
1100 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { | 1100 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { |
1101 return proxy_->CapturePicture(); | 1101 return proxy_->CapturePicture(); |
1102 } | 1102 } |
1103 | 1103 |
1104 } // namespace cc | 1104 } // namespace cc |
OLD | NEW |