Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 904633004: [cc]: Add a BeginMainFrameNotExpectedSoon signal and route it to the RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mojo and webview. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698