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

Unified Diff: components/exo/surface_delegate.h

Issue 1419373013: exo: Add support for subcompositor interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@exosphere-xdg-shell
Patch Set: address review feedback Created 5 years, 1 month 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 | « components/exo/surface.cc ('k') | components/exo/surface_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface_delegate.h
diff --git a/components/exo/surface_delegate.h b/components/exo/surface_delegate.h
index bfda475fc5b18f78c361cf276b499cd8b1088b08..c4504855bc923a63572e28423e5bf0aabe472c85 100644
--- a/components/exo/surface_delegate.h
+++ b/components/exo/surface_delegate.h
@@ -10,13 +10,13 @@ namespace exo {
// Handles events on surfaces in context-specific ways.
class SurfaceDelegate {
public:
- // Called when the surface is destroyed. The delegate can use this
- // opportunity to delete itself if necessary.
- virtual void OnSurfaceDestroying() = 0;
-
// Called when surface was requested to commit all double-buffered state.
virtual void OnSurfaceCommit() = 0;
+ // Returns true if surface is in synchronized mode. ie. commit of
+ // double-buffered state should be synchronized with parent surface.
+ virtual bool IsSurfaceSynchronized() const = 0;
+
protected:
virtual ~SurfaceDelegate() {}
};
« no previous file with comments | « components/exo/surface.cc ('k') | components/exo/surface_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698