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

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

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: missed one Created 3 years, 9 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 void LayerTreeHost::DidBeginMainFrame() { 244 void LayerTreeHost::DidBeginMainFrame() {
245 inside_main_frame_ = false; 245 inside_main_frame_ = false;
246 client_->DidBeginMainFrame(); 246 client_->DidBeginMainFrame();
247 } 247 }
248 248
249 void LayerTreeHost::BeginMainFrameNotExpectedSoon() { 249 void LayerTreeHost::BeginMainFrameNotExpectedSoon() {
250 client_->BeginMainFrameNotExpectedSoon(); 250 client_->BeginMainFrameNotExpectedSoon();
251 } 251 }
252 252
253 void LayerTreeHost::DoShortIdleWork(const BeginFrameArgs& args) {
254 client_->DoShortIdleWork(args);
255 }
256
253 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) { 257 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) {
254 client_->BeginMainFrame(args); 258 client_->BeginMainFrame(args);
255 } 259 }
256 260
257 void LayerTreeHost::DidStopFlinging() { 261 void LayerTreeHost::DidStopFlinging() {
258 proxy_->MainThreadHasStoppedFlinging(); 262 proxy_->MainThreadHasStoppedFlinging();
259 } 263 }
260 264
261 const LayerTreeDebugState& LayerTreeHost::GetDebugState() const { 265 const LayerTreeDebugState& LayerTreeHost::GetDebugState() const {
262 return debug_state_; 266 return debug_state_;
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 LayerListReverseIterator<Layer> LayerTreeHost::rend() { 1350 LayerListReverseIterator<Layer> LayerTreeHost::rend() {
1347 return LayerListReverseIterator<Layer>(nullptr); 1351 return LayerListReverseIterator<Layer>(nullptr);
1348 } 1352 }
1349 1353
1350 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { 1354 void LayerTreeHost::SetNeedsDisplayOnAllLayers() {
1351 for (auto* layer : *this) 1355 for (auto* layer : *this)
1352 layer->SetNeedsDisplay(); 1356 layer->SetNeedsDisplay();
1353 } 1357 }
1354 1358
1355 } // namespace cc 1359 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698