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

Unified Diff: components/exo/surface.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: rebase Created 4 years 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 | « cc/trees/layer_tree_host_impl.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.h
diff --git a/components/exo/surface.h b/components/exo/surface.h
index c0dd7870ca224bd60ad42cc2e6998d14873a4ed8..fcc0a71dd3367baa3840c6653b7c958768d83745 100644
--- a/components/exo/surface.h
+++ b/components/exo/surface.h
@@ -380,6 +380,12 @@ class Surface : public ui::ContextFactoryObserver, public aura::WindowObserver {
// Surface observer list. Surface does not own the observers.
base::ObserverList<SurfaceObserver, true> observers_;
+ // A reference factory that uses the compositor frame sink holder provided
+ // to this class to construct surface references. This object is passed to
+ // ui::Layer::SetShowSurface because the layer needs to know how to add
+ // references to surfaces.
+ scoped_refptr<cc::SurfaceReferenceFactory> surface_reference_factory_;
+
DISALLOW_COPY_AND_ASSIGN(Surface);
};
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698