| 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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 DCHECK(swap_promise); | 1308 DCHECK(swap_promise); |
| 1309 swap_promise_list_.push_back(swap_promise.Pass()); | 1309 swap_promise_list_.push_back(swap_promise.Pass()); |
| 1310 } | 1310 } |
| 1311 | 1311 |
| 1312 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { | 1312 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { |
| 1313 for (size_t i = 0; i < swap_promise_list_.size(); i++) | 1313 for (size_t i = 0; i < swap_promise_list_.size(); i++) |
| 1314 swap_promise_list_[i]->DidNotSwap(reason); | 1314 swap_promise_list_[i]->DidNotSwap(reason); |
| 1315 swap_promise_list_.clear(); | 1315 swap_promise_list_.clear(); |
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 void LayerTreeHost::SetAuthoritativeVSyncInterval( |
| 1319 const base::TimeDelta& interval) { |
| 1320 proxy_->SetAuthoritativeVSyncInterval(interval); |
| 1321 } |
| 1322 |
| 1318 void LayerTreeHost::set_surface_id_namespace(uint32_t id_namespace) { | 1323 void LayerTreeHost::set_surface_id_namespace(uint32_t id_namespace) { |
| 1319 surface_id_namespace_ = id_namespace; | 1324 surface_id_namespace_ = id_namespace; |
| 1320 } | 1325 } |
| 1321 | 1326 |
| 1322 SurfaceSequence LayerTreeHost::CreateSurfaceSequence() { | 1327 SurfaceSequence LayerTreeHost::CreateSurfaceSequence() { |
| 1323 return SurfaceSequence(surface_id_namespace_, next_surface_sequence_++); | 1328 return SurfaceSequence(surface_id_namespace_, next_surface_sequence_++); |
| 1324 } | 1329 } |
| 1325 | 1330 |
| 1326 void LayerTreeHost::SetChildrenNeedBeginFrames( | 1331 void LayerTreeHost::SetChildrenNeedBeginFrames( |
| 1327 bool children_need_begin_frames) const { | 1332 bool children_need_begin_frames) const { |
| 1328 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); | 1333 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); |
| 1329 } | 1334 } |
| 1330 | 1335 |
| 1331 void LayerTreeHost::SendBeginFramesToChildren( | 1336 void LayerTreeHost::SendBeginFramesToChildren( |
| 1332 const BeginFrameArgs& args) const { | 1337 const BeginFrameArgs& args) const { |
| 1333 client_->SendBeginFramesToChildren(args); | 1338 client_->SendBeginFramesToChildren(args); |
| 1334 } | 1339 } |
| 1335 | 1340 |
| 1336 } // namespace cc | 1341 } // namespace cc |
| OLD | NEW |