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

Unified Diff: cc/scheduler/scheduler_state_machine.cc

Issue 1336813002: cc: Don't recreate lost OutputSurface when hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests Created 5 years, 3 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
Index: cc/scheduler/scheduler_state_machine.cc
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index 7808b3f48b45f02272438eab944d169f0ba0a0aa..f1cbfe49aad4840dcecbf415c1af0e4b93f3ba21 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -291,6 +291,9 @@ bool SchedulerStateMachine::PendingActivationsShouldBeForced() const {
}
bool SchedulerStateMachine::ShouldBeginOutputSurfaceCreation() const {
+ if (!visible_)
+ return false;
+
// Don't try to initialize too early.
if (!can_start_)
return false;
« no previous file with comments | « no previous file | cc/scheduler/scheduler_state_machine_unittest.cc » ('j') | cc/scheduler/scheduler_state_machine_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698