commit | 0a19362adbaa53af4fb7ccb5819f482b30ca75af | [log] [tgz] |
---|---|---|
author | rmcilroy <[email protected]> | Wed Feb 18 12:34:25 2015 |
committer | Commit bot <[email protected]> | Wed Feb 18 12:35:06 2015 |
tree | 64ca517e1b0129984eff6d8042ba551a312db8de | |
parent | 042ba9e6f314f96f237da815ae204c7f1be787c9 [diff] [blame] |
[cc]: Add a BeginMainFrameNotExpectedSoon signal and route it to the RendererScheduler. In order to implement long idle times, the RendererScheduler needs to know when the compositor has stoped drawing frames. To enable this, add a BeginMainFrameNotExpectedSoon signal which is sent when the cc scheduler stops requesting BeginFrames from the Browser. Design Doc: https://docs.google.com/a/chromium.org/document/d/1yBlUdYW8VTIfB-DqhvQqUeP0kf-Ap1W4cao2yQq58Do/edit BUG=455713 [email protected], [email protected], [email protected] Review URL: https://codereview.chromium.org/904633004 Cr-Commit-Position: refs/heads/master@{#316804}
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc index 3592860..ea04b8c 100644 --- a/ui/compositor/compositor.cc +++ b/ui/compositor/compositor.cc
@@ -299,6 +299,9 @@ host_->SetNeedsAnimate(); } +void Compositor::BeginMainFrameNotExpectedSoon() { +} + void Compositor::Layout() { // We're sending damage that will be addressed during this composite // cycle, so we don't need to schedule another composite to address it.