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

Unified Diff: ui/compositor/layer_owner.cc

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
Index: ui/compositor/layer_owner.cc
diff --git a/ui/compositor/layer_owner.cc b/ui/compositor/layer_owner.cc
index d94ff2cc8239813e500d1296b780ae5cd16cff9d..39d6c7dcfc45777bfc9e207d64160e8ecc96777b 100644
--- a/ui/compositor/layer_owner.cc
+++ b/ui/compositor/layer_owner.cc
@@ -87,6 +87,11 @@ std::unique_ptr<Layer> LayerOwner::RecreateLayer() {
return old_layer;
}
+void LayerOwner::MirrorLayer(Layer* mirror) const {
+ DCHECK(OwnsLayer());
+ layer_owner_delegate_->OnLayerMirrored(mirror);
+}
+
void LayerOwner::DestroyLayer() {
layer_ = NULL;
layer_owner_.reset();

Powered by Google App Engine
This is Rietveld 408576698