| 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 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 } | 670 } |
| 671 | 671 |
| 672 void LayerTreeHost::NotifyInputThrottledUntilCommit() { | 672 void LayerTreeHost::NotifyInputThrottledUntilCommit() { |
| 673 proxy_->NotifyInputThrottledUntilCommit(); | 673 proxy_->NotifyInputThrottledUntilCommit(); |
| 674 } | 674 } |
| 675 | 675 |
| 676 void LayerTreeHost::Composite(base::TimeTicks frame_begin_time) { | 676 void LayerTreeHost::Composite(base::TimeTicks frame_begin_time) { |
| 677 DCHECK(!proxy_->HasImplThread()); | 677 DCHECK(!proxy_->HasImplThread()); |
| 678 SingleThreadProxy* proxy = static_cast<SingleThreadProxy*>(proxy_.get()); | 678 SingleThreadProxy* proxy = static_cast<SingleThreadProxy*>(proxy_.get()); |
| 679 | 679 |
| 680 SetLayerTreeHostClientReady(); |
| 681 |
| 680 if (output_surface_lost_) | 682 if (output_surface_lost_) |
| 681 proxy->CreateAndInitializeOutputSurface(); | 683 proxy->CreateAndInitializeOutputSurface(); |
| 682 if (output_surface_lost_) | 684 if (output_surface_lost_) |
| 683 return; | 685 return; |
| 684 | 686 |
| 685 proxy->CompositeImmediately(frame_begin_time); | 687 proxy->CompositeImmediately(frame_begin_time); |
| 686 } | 688 } |
| 687 | 689 |
| 688 bool LayerTreeHost::UpdateLayers(ResourceUpdateQueue* queue) { | 690 bool LayerTreeHost::UpdateLayers(ResourceUpdateQueue* queue) { |
| 689 DCHECK(!output_surface_lost_); | 691 DCHECK(!output_surface_lost_); |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 swap_promise_list_.push_back(swap_promise.Pass()); | 1257 swap_promise_list_.push_back(swap_promise.Pass()); |
| 1256 } | 1258 } |
| 1257 | 1259 |
| 1258 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { | 1260 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { |
| 1259 for (size_t i = 0; i < swap_promise_list_.size(); i++) | 1261 for (size_t i = 0; i < swap_promise_list_.size(); i++) |
| 1260 swap_promise_list_[i]->DidNotSwap(reason); | 1262 swap_promise_list_[i]->DidNotSwap(reason); |
| 1261 swap_promise_list_.clear(); | 1263 swap_promise_list_.clear(); |
| 1262 } | 1264 } |
| 1263 | 1265 |
| 1264 } // namespace cc | 1266 } // namespace cc |
| OLD | NEW |