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

Unified Diff: ui/compositor/compositor.h

Issue 2238693002: Plumb SetVisible from ui::Compositor to the DirectRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: setvisible-browser: onemore Created 4 years, 4 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 | « ui/compositor/DEPS ('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 629508f94d426749854812e7cd52747b402df586..e7d12bf0361bff3ddf410d593e8ed9ae34869de0 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -140,6 +140,11 @@ class COMPOSITOR_EXPORT ContextFactory {
// Gets the surface manager.
virtual cc::SurfaceManager* GetSurfaceManager() = 0;
+ // Inform the display corresponding to this compositor if it is visible. When
+ // false it does not need to produce any frames. Visibility is reset for each
+ // call to CreateOutputSurface.
+ virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0;
+
// Resize the display corresponding to this compositor to a particular size.
virtual void ResizeDisplay(ui::Compositor* compositor,
const gfx::Size& size) = 0;
« no previous file with comments | « ui/compositor/DEPS ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698