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

Unified Diff: ui/compositor/compositor.cc

Issue 910393002: Disable rendering when suspending on chrome os (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 5 years, 10 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: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index bea2eb7f3c98f7725e7166edf4f7b3d6e8cebbe9..74f04d57c98d9affd4a8de499b11f206806ca1ee 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -228,6 +228,10 @@ void Compositor::ScheduleRedrawRect(const gfx::Rect& damage_rect) {
host_->SetNeedsCommit();
}
+void Compositor::DisableSwap() {
piman 2015/02/11 02:48:22 I'd prefer calling it FinishAllRendering(). It doe
Chirantan Ekbote 2015/02/18 02:47:13 Done.
+ host_->FinishAllRendering();
+}
+
void Compositor::DisableSwapUntilResize() {
host_->FinishAllRendering();
context_factory_->ResizeDisplay(this, gfx::Size());
@@ -264,6 +268,10 @@ void Compositor::SetVisible(bool visible) {
host_->SetVisible(visible);
}
+bool Compositor::IsVisible() {
+ return host_->visible();
+}
+
scoped_refptr<CompositorVSyncManager> Compositor::vsync_manager() const {
return vsync_manager_;
}
« ash/system/chromeos/power/power_event_observer_unittest.cc ('K') | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698