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

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: Add BeginMainFrameNotExpectedUntil to content::CompositorImpl for Android. Created 3 years, 7 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 void LayerTreeHost::DidBeginMainFrame() { 241 void LayerTreeHost::DidBeginMainFrame() {
242 inside_main_frame_ = false; 242 inside_main_frame_ = false;
243 client_->DidBeginMainFrame(); 243 client_->DidBeginMainFrame();
244 } 244 }
245 245
246 void LayerTreeHost::BeginMainFrameNotExpectedSoon() { 246 void LayerTreeHost::BeginMainFrameNotExpectedSoon() {
247 client_->BeginMainFrameNotExpectedSoon(); 247 client_->BeginMainFrameNotExpectedSoon();
248 } 248 }
249 249
250 void LayerTreeHost::BeginMainFrameNotExpectedUntil(base::TimeTicks time) {
251 client_->BeginMainFrameNotExpectedUntil(time);
252 }
253
250 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) { 254 void LayerTreeHost::BeginMainFrame(const BeginFrameArgs& args) {
251 client_->BeginMainFrame(args); 255 client_->BeginMainFrame(args);
252 } 256 }
253 257
254 void LayerTreeHost::DidStopFlinging() { 258 void LayerTreeHost::DidStopFlinging() {
255 proxy_->MainThreadHasStoppedFlinging(); 259 proxy_->MainThreadHasStoppedFlinging();
256 } 260 }
257 261
258 const LayerTreeDebugState& LayerTreeHost::GetDebugState() const { 262 const LayerTreeDebugState& LayerTreeHost::GetDebugState() const {
259 return debug_state_; 263 return debug_state_;
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { 1448 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) {
1445 has_copy_request_ = has_copy_request; 1449 has_copy_request_ = has_copy_request;
1446 } 1450 }
1447 1451
1448 } // namespace cc 1452 } // 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