Chromium Code Reviews| Index: cc/trees/single_thread_proxy.cc |
| diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc |
| index 0386145c7c55fea08e4f34362dd5f3536b1b1a02..050c153b756501d54db39b903034035f39e64d5a 100644 |
| --- a/cc/trees/single_thread_proxy.cc |
| +++ b/cc/trees/single_thread_proxy.cc |
| @@ -624,6 +624,13 @@ void SingleThreadProxy::SendBeginMainFrameNotExpectedSoon() { |
| layer_tree_host_->BeginMainFrameNotExpectedSoon(); |
| } |
| +int SingleThreadProxy::SyncTreeSourceFrameNumber() { |
|
vmpstr
2017/04/05 19:11:33
Do we have pending trees in single thread proxy? (
brianderson
2017/04/06 23:43:15
SingleThreadProxy is only used in the Browser, whe
panicker
2017/04/08 00:29:07
Updated to passing argument to NotifyReadyToActiva
panicker
2017/04/10 22:20:05
Discussed offline and updated to passing 0 here.
|
| + if (layer_tree_host_impl_ && layer_tree_host_impl_->pending_tree()) |
| + return layer_tree_host_impl_->pending_tree()->source_frame_number(); |
| + else |
| + return 0; |
| +} |
| + |
| void SingleThreadProxy::BeginMainFrame(const BeginFrameArgs& begin_frame_args) { |
| if (scheduler_on_impl_thread_) { |
| scheduler_on_impl_thread_->NotifyBeginMainFrameStarted( |