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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 | 940 |
941 // Should only have one render pass in resourceless software mode. | 941 // Should only have one render pass in resourceless software mode. |
942 DCHECK(draw_mode != DRAW_MODE_RESOURCELESS_SOFTWARE || | 942 DCHECK(draw_mode != DRAW_MODE_RESOURCELESS_SOFTWARE || |
943 frame->render_passes.size() == 1u) | 943 frame->render_passes.size() == 1u) |
944 << frame->render_passes.size(); | 944 << frame->render_passes.size(); |
945 | 945 |
946 return draw_result; | 946 return draw_result; |
947 } | 947 } |
948 | 948 |
949 void LayerTreeHostImpl::MainThreadHasStoppedFlinging() { | 949 void LayerTreeHostImpl::MainThreadHasStoppedFlinging() { |
| 950 if (top_controls_manager_) |
| 951 top_controls_manager_->MainThreadHasStoppedFlinging(); |
950 if (input_handler_client_) | 952 if (input_handler_client_) |
951 input_handler_client_->MainThreadHasStoppedFlinging(); | 953 input_handler_client_->MainThreadHasStoppedFlinging(); |
952 } | 954 } |
953 | 955 |
954 void LayerTreeHostImpl::DidAnimateScrollOffset() { | 956 void LayerTreeHostImpl::DidAnimateScrollOffset() { |
955 client_->SetNeedsCommitOnImplThread(); | 957 client_->SetNeedsCommitOnImplThread(); |
956 client_->RenewTreePriority(); | 958 client_->RenewTreePriority(); |
957 } | 959 } |
958 | 960 |
959 void LayerTreeHostImpl::SetViewportDamage(const gfx::Rect& damage_rect) { | 961 void LayerTreeHostImpl::SetViewportDamage(const gfx::Rect& damage_rect) { |
(...skipping 2545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3505 (*it)->OnSetNeedsRedrawOnImpl(); | 3507 (*it)->OnSetNeedsRedrawOnImpl(); |
3506 } | 3508 } |
3507 | 3509 |
3508 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfForwardingToMainThread() { | 3510 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfForwardingToMainThread() { |
3509 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 3511 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
3510 for (; it != swap_promise_monitor_.end(); it++) | 3512 for (; it != swap_promise_monitor_.end(); it++) |
3511 (*it)->OnForwardScrollUpdateToMainThreadOnImpl(); | 3513 (*it)->OnForwardScrollUpdateToMainThreadOnImpl(); |
3512 } | 3514 } |
3513 | 3515 |
3514 } // namespace cc | 3516 } // namespace cc |
OLD | NEW |