| 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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 | 909 |
| 910 // Should only have one render pass in resourceless software mode. | 910 // Should only have one render pass in resourceless software mode. |
| 911 DCHECK(draw_mode != DRAW_MODE_RESOURCELESS_SOFTWARE || | 911 DCHECK(draw_mode != DRAW_MODE_RESOURCELESS_SOFTWARE || |
| 912 frame->render_passes.size() == 1u) | 912 frame->render_passes.size() == 1u) |
| 913 << frame->render_passes.size(); | 913 << frame->render_passes.size(); |
| 914 | 914 |
| 915 return draw_result; | 915 return draw_result; |
| 916 } | 916 } |
| 917 | 917 |
| 918 void LayerTreeHostImpl::MainThreadHasStoppedFlinging() { | 918 void LayerTreeHostImpl::MainThreadHasStoppedFlinging() { |
| 919 if (top_controls_manager_) |
| 920 top_controls_manager_->MainThreadHasStoppedFlinging(); |
| 919 if (input_handler_client_) | 921 if (input_handler_client_) |
| 920 input_handler_client_->MainThreadHasStoppedFlinging(); | 922 input_handler_client_->MainThreadHasStoppedFlinging(); |
| 921 } | 923 } |
| 922 | 924 |
| 923 void LayerTreeHostImpl::DidAnimateScrollOffset() { | 925 void LayerTreeHostImpl::DidAnimateScrollOffset() { |
| 924 client_->SetNeedsCommitOnImplThread(); | 926 client_->SetNeedsCommitOnImplThread(); |
| 925 client_->RenewTreePriority(); | 927 client_->RenewTreePriority(); |
| 926 } | 928 } |
| 927 | 929 |
| 928 void LayerTreeHostImpl::SetViewportDamage(const gfx::Rect& damage_rect) { | 930 void LayerTreeHostImpl::SetViewportDamage(const gfx::Rect& damage_rect) { |
| (...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3469 (*it)->OnSetNeedsRedrawOnImpl(); | 3471 (*it)->OnSetNeedsRedrawOnImpl(); |
| 3470 } | 3472 } |
| 3471 | 3473 |
| 3472 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfForwardingToMainThread() { | 3474 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfForwardingToMainThread() { |
| 3473 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 3475 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
| 3474 for (; it != swap_promise_monitor_.end(); it++) | 3476 for (; it != swap_promise_monitor_.end(); it++) |
| 3475 (*it)->OnForwardScrollUpdateToMainThreadOnImpl(); | 3477 (*it)->OnForwardScrollUpdateToMainThreadOnImpl(); |
| 3476 } | 3478 } |
| 3477 | 3479 |
| 3478 } // namespace cc | 3480 } // namespace cc |
| OLD | NEW |