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

Unified Diff: ui/compositor/layer_owner_delegate.h

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Created 4 years, 3 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
« ui/compositor/layer_owner.h ('K') | « ui/compositor/layer_owner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_owner_delegate.h
diff --git a/ui/compositor/layer_owner_delegate.h b/ui/compositor/layer_owner_delegate.h
index 68ba92ee445673fb814168fda7812f505473d72a..bf7047ac5a5286cd6be11a2917191a7b46453183 100644
--- a/ui/compositor/layer_owner_delegate.h
+++ b/ui/compositor/layer_owner_delegate.h
@@ -10,14 +10,19 @@
namespace ui {
class Layer;
-// Called from RecreateLayer() after the new layer was created. old_layer is
-// the layer that will be returned to the caller of RecreateLayer, new_layer
-// will be the layer now used. Used when the layer has external content
-// (SetTextureMailbox / SetDelegatedFrame was called).
+// Used for layers with external content, e.g. a surface via SetShowSurface.
class COMPOSITOR_EXPORT LayerOwnerDelegate {
public:
+ // Called from RecreateLayer after the new layer is created. |old_layer| is
+ // the previously owned layer returned to the caller of RecreateLayer, and
+ // |new_layer| is the recreated layer now owned. |new_layer| should share
+ // the content of |old_layer| after this call.
virtual void OnLayerRecreated(Layer* old_layer, Layer* new_layer) = 0;
+ // Called from MirrorLayer. |mirror| should share the content of the owned
+ // layer after this call.
+ virtual void OnLayerMirrored(Layer* mirror) = 0;
+
protected:
virtual ~LayerOwnerDelegate() {}
};
« ui/compositor/layer_owner.h ('K') | « ui/compositor/layer_owner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698