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

Unified Diff: services/surfaces/surfaces_scheduler.cc

Issue 827163002: Fix surfaces scheduler so apps can draw (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/surfaces/surfaces_scheduler.cc
diff --git a/services/surfaces/surfaces_scheduler.cc b/services/surfaces/surfaces_scheduler.cc
index 6e099f445978381c7da1fff425d3830bc55a4c6b..f048d26343341c99d10e618aaab887b9a12357ab 100644
--- a/services/surfaces/surfaces_scheduler.cc
+++ b/services/surfaces/surfaces_scheduler.cc
@@ -17,6 +17,7 @@ SurfacesScheduler::SurfacesScheduler(Client* client) : client_(client) {
scheduler_->SetCanStart();
scheduler_->SetVisible(true);
scheduler_->SetCanDraw(true);
+ scheduler_->SetNeedsCommit();
}
SurfacesScheduler::~SurfacesScheduler() {
@@ -35,6 +36,8 @@ void SurfacesScheduler::WillBeginImplFrame(const cc::BeginFrameArgs& args) {
}
void SurfacesScheduler::ScheduledActionSendBeginMainFrame() {
+ scheduler_->NotifyBeginMainFrameStarted();
+ scheduler_->NotifyReadyToCommit();
}
cc::DrawResult SurfacesScheduler::ScheduledActionDrawAndSwapIfPossible() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698