exo: Add SurfaceTreeHost
The SurfaceTreeHost is for hosting a exo surface tree in
an aura::Window. And the users (ShellSurface, Pointer and
NotificationSurface) of SurfaceTreeHost just need embed the
aura::Window in SurfaceTreeHost.
In future, we will only have one CompositorFrameSink per
exo toplevel window, so the SurfaceTreeHost will manage
the CompositorFrameSink and generate CompositorFrame for
the surface tree in it.
Bug: 731742
Change-Id: I8621d7cde2c1142de97c50f1952384937dbd882d
Reviewed-on: https://chromium-review.googlesource.com/541061
Reviewed-by: Yoshiki Iguchi <[email protected]>
Reviewed-by: David Reveman <[email protected]>
Commit-Queue: Peng Huang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#482943}
diff --git a/components/exo/surface.h b/components/exo/surface.h
index 7dabdda..6c9fa64c 100644
--- a/components/exo/surface.h
+++ b/components/exo/surface.h
@@ -194,7 +194,7 @@
void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source);
// Returns the active contents size.
- gfx::Size content_size() const { return content_size_; }
+ const gfx::Size& content_size() const { return content_size_; }
// Returns true if the associated window is in 'stylus-only' mode.
bool IsStylusOnly();