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

Unified Diff: ui/compositor/compositor.h

Issue 910393002: Disable rendering when suspending on chrome os (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up comments 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 9bc7f884aa9e8789414749d74dc6235f2896d3ff..9fa0dd9d80ad695db4c6fd8517966b34c28e7732 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -182,6 +182,9 @@ class COMPOSITOR_EXPORT Compositor
// from changes to layer properties.
void ScheduleRedrawRect(const gfx::Rect& damage_rect);
+ // Finishes all outstanding rendering and disables swapping on this surface.
+ void FinishAllRendering();
+
// Finishes all outstanding rendering and disables swapping on this surface
// until it is resized.
void DisableSwapUntilResize();
@@ -201,6 +204,9 @@ class COMPOSITOR_EXPORT Compositor
// Set the visibility of the underlying compositor.
void SetVisible(bool visible);
+ // Get the visibility of the underlying compositor.
piman 2015/02/18 16:26:42 nit: Gets
Chirantan Ekbote 2015/02/18 19:26:50 Done.
+ bool IsVisible();
+
// Returns the widget for this compositor.
gfx::AcceleratedWidget widget() const { return widget_; }
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698