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

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: 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
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 ResourceProvider* resource_provider) { 219 ResourceProvider* resource_provider) {
220 DCHECK(proxy_->IsImplThread()); 220 DCHECK(proxy_->IsImplThread());
221 if (contents_texture_manager_) 221 if (contents_texture_manager_)
222 contents_texture_manager_->ClearAllMemory(resource_provider); 222 contents_texture_manager_->ClearAllMemory(resource_provider);
223 } 223 }
224 224
225 void LayerTreeHost::DidBeginMainFrame() { 225 void LayerTreeHost::DidBeginMainFrame() {
226 client_->DidBeginMainFrame(); 226 client_->DidBeginMainFrame();
227 } 227 }
228 228
229 void LayerTreeHost::BeginMainFrameNoLongerRequired() {
230 client_->BeginMainFrameNoLongerRequired();
231 }
232
229 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) { 233 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) {
230 inside_begin_main_frame_ = true; 234 inside_begin_main_frame_ = true;
231 client_->BeginMainFrame(args); 235 client_->BeginMainFrame(args);
232 inside_begin_main_frame_ = false; 236 inside_begin_main_frame_ = false;
233 } 237 }
234 238
235 void LayerTreeHost::DidStopFlinging() { 239 void LayerTreeHost::DidStopFlinging() {
236 proxy_->MainThreadHasStoppedFlinging(); 240 proxy_->MainThreadHasStoppedFlinging();
237 } 241 }
238 242
(...skipping 1131 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

Powered by Google App Engine
This is Rietveld 408576698