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

Unified Diff: ui/compositor/compositor.h

Issue 1388543004: aura: Support releasing the OutputSurface() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startcomp
Patch Set: Created 5 years, 2 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 | « no previous file | ui/compositor/compositor.cc » ('j') | ui/compositor/compositor_unittest.cc » ('J')
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 8235c453df32750dc77f1e5265270089c4029c6b..0ba4aea166affba82e222e77c3d375e740987821 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -231,6 +231,10 @@ class COMPOSITOR_EXPORT Compositor
// Sets the widget for the compositor to render into.
void SetAcceleratedWidget(gfx::AcceleratedWidget widget);
+ // Releases the widget previously set through SetAcceleratedWidget().
+ // After returning it will not be used for rendering anymore.
+ // The compositor must be set to invisible when taking away a widget.
+ gfx::AcceleratedWidget ReleaseAcceleratedWidget();
gfx::AcceleratedWidget widget() const;
// Returns the vsync manager for this compositor.
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | ui/compositor/compositor_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698