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

Unified Diff: services/surfaces/surfaces_scheduler.cc

Issue 1123623003: Automatically redraw the display on resume. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Response to review Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/native_viewport/onscreen_context_provider.cc ('k') | 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 b5edb05d43a4e636502fa440c19313e5277868c6..1a236206d1cd4663487243b71c5c4d84aca333ae 100644
--- a/services/surfaces/surfaces_scheduler.cc
+++ b/services/surfaces/surfaces_scheduler.cc
@@ -37,6 +37,10 @@ void SurfacesScheduler::OnVSyncParametersUpdated(base::TimeTicks timebase,
void SurfacesScheduler::AddDisplay(cc::Display* display) {
DCHECK(displays_.find(display) == displays_.end());
displays_.insert(display);
+
+ // A draw might be necessary (e.g., this display might be getting added on
+ // resumption from backgrounding).
+ SetNeedsDraw();
}
void SurfacesScheduler::RemoveDisplay(cc::Display* display) {
« no previous file with comments | « services/native_viewport/onscreen_context_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698