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

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: respond to Brian's comments Created 3 years, 8 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 void LayerTreeHost::DidBeginMainFrame() { 243 void LayerTreeHost::DidBeginMainFrame() {
244 inside_main_frame_ = false; 244 inside_main_frame_ = false;
245 client_->DidBeginMainFrame(); 245 client_->DidBeginMainFrame();
246 } 246 }
247 247
248 void LayerTreeHost::BeginMainFrameNotExpectedSoon() { 248 void LayerTreeHost::BeginMainFrameNotExpectedSoon() {
249 client_->BeginMainFrameNotExpectedSoon(); 249 client_->BeginMainFrameNotExpectedSoon();
250 } 250 }
251 251
252 void LayerTreeHost::BeginMainFrameNotExpectedUntil(base::TimeTicks time) {
253 client_->BeginMainFrameNotExpectedUntil(time);
254 }
255
252 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) { 256 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) {
253 client_->BeginMainFrame(args); 257 client_->BeginMainFrame(args);
254 } 258 }
255 259
256 void LayerTreeHost::DidStopFlinging() { 260 void LayerTreeHost::DidStopFlinging() {
257 proxy_->MainThreadHasStoppedFlinging(); 261 proxy_->MainThreadHasStoppedFlinging();
258 } 262 }
259 263
260 const LayerTreeDebugState& LayerTreeHost::GetDebugState() const { 264 const LayerTreeDebugState& LayerTreeHost::GetDebugState() const {
261 return debug_state_; 265 return debug_state_;
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 LayerListReverseIterator<Layer> LayerTreeHost::rend() { 1439 LayerListReverseIterator<Layer> LayerTreeHost::rend() {
1436 return LayerListReverseIterator<Layer>(nullptr); 1440 return LayerListReverseIterator<Layer>(nullptr);
1437 } 1441 }
1438 1442
1439 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { 1443 void LayerTreeHost::SetNeedsDisplayOnAllLayers() {
1440 for (auto* layer : *this) 1444 for (auto* layer : *this)
1441 layer->SetNeedsDisplay(); 1445 layer->SetNeedsDisplay();
1442 } 1446 }
1443 1447
1444 } // namespace cc 1448 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698