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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 void LayerTreeHost::WillBeginMainFrame() { | 226 void LayerTreeHost::WillBeginMainFrame() { |
227 devtools_instrumentation::WillBeginMainThreadFrame(id(), | 227 devtools_instrumentation::WillBeginMainThreadFrame(id(), |
228 source_frame_number()); | 228 source_frame_number()); |
229 client_->WillBeginMainFrame(); | 229 client_->WillBeginMainFrame(); |
230 } | 230 } |
231 | 231 |
232 void LayerTreeHost::DidBeginMainFrame() { | 232 void LayerTreeHost::DidBeginMainFrame() { |
233 client_->DidBeginMainFrame(); | 233 client_->DidBeginMainFrame(); |
234 } | 234 } |
235 | 235 |
| 236 void LayerTreeHost::BeginMainFrameNotExpectedSoon() { |
| 237 client_->BeginMainFrameNotExpectedSoon(); |
| 238 } |
| 239 |
236 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) { | 240 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) { |
237 inside_begin_main_frame_ = true; | 241 inside_begin_main_frame_ = true; |
238 client_->BeginMainFrame(args); | 242 client_->BeginMainFrame(args); |
239 inside_begin_main_frame_ = false; | 243 inside_begin_main_frame_ = false; |
240 } | 244 } |
241 | 245 |
242 void LayerTreeHost::DidStopFlinging() { | 246 void LayerTreeHost::DidStopFlinging() { |
243 proxy_->MainThreadHasStoppedFlinging(); | 247 proxy_->MainThreadHasStoppedFlinging(); |
244 } | 248 } |
245 | 249 |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 bool children_need_begin_frames) const { | 1374 bool children_need_begin_frames) const { |
1371 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); | 1375 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); |
1372 } | 1376 } |
1373 | 1377 |
1374 void LayerTreeHost::SendBeginFramesToChildren( | 1378 void LayerTreeHost::SendBeginFramesToChildren( |
1375 const BeginFrameArgs& args) const { | 1379 const BeginFrameArgs& args) const { |
1376 client_->SendBeginFramesToChildren(args); | 1380 client_->SendBeginFramesToChildren(args); |
1377 } | 1381 } |
1378 | 1382 |
1379 } // namespace cc | 1383 } // namespace cc |
OLD | NEW |