| Index: components/exo/surface.cc
|
| diff --git a/components/exo/surface.cc b/components/exo/surface.cc
|
| index b6edb5b7558d02bda6e326477945e107ffb6843d..771e0aa4d08ddd1f474450489a7ae09db185f67d 100644
|
| --- a/components/exo/surface.cc
|
| +++ b/components/exo/surface.cc
|
| @@ -185,6 +185,10 @@
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // Surface, public:
|
|
|
| +// TODO(fsamuel): exo should not use context_factory_private. Instead, we should
|
| +// request a CompositorFrameSink from the aura::Window. Setting up the
|
| +// BeginFrame hierarchy should be an internal implementation detail of aura or
|
| +// mus in aura-mus.
|
| Surface::Surface() : window_(new aura::Window(new CustomWindowDelegate(this))) {
|
| window_->SetType(aura::client::WINDOW_TYPE_CONTROL);
|
| window_->SetName("ExoSurface");
|
| @@ -804,10 +808,6 @@
|
| }
|
|
|
| content_size_ = layer_size;
|
| - // We need update window_'s bounds with content size, because the
|
| - // CompositorFrameSink may not update the window's size base the size of
|
| - // the lastest submitted CompositorFrame.
|
| - window_->SetBounds(gfx::Rect(window_->bounds().origin(), content_size_));
|
| // TODO(jbauman): Figure out how this interacts with the pixel size of
|
| // CopyOutputRequests on the layer.
|
| gfx::Size contents_surface_size = layer_size;
|
|
|