| Index: components/exo/surface.cc
|
| diff --git a/components/exo/surface.cc b/components/exo/surface.cc
|
| index 5edc802f9635be0168c30c9bf197969867378ace..b5e6ceb91e06acff0a574da9e429c81be5f43948 100644
|
| --- a/components/exo/surface.cc
|
| +++ b/components/exo/surface.cc
|
| @@ -162,52 +162,13 @@ void RequireCallback(cc::SurfaceManager* manager,
|
| } // namespace
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| -// SurfaceFactoryOwner, public:
|
| -
|
| -SurfaceFactoryOwner::SurfaceFactoryOwner() {}
|
| -
|
| -////////////////////////////////////////////////////////////////////////////////
|
| -// cc::SurfaceFactoryClient overrides:
|
| -
|
| -void SurfaceFactoryOwner::ReturnResources(
|
| - const cc::ReturnedResourceArray& resources) {
|
| - scoped_refptr<SurfaceFactoryOwner> holder(this);
|
| - for (auto& resource : resources) {
|
| - auto it = release_callbacks_.find(resource.id);
|
| - DCHECK(it != release_callbacks_.end());
|
| - it->second.second->Run(resource.sync_token, resource.lost);
|
| - release_callbacks_.erase(it);
|
| - }
|
| -}
|
| -
|
| -void SurfaceFactoryOwner::WillDrawSurface(const cc::LocalFrameId& id,
|
| - const gfx::Rect& damage_rect) {
|
| - if (surface_)
|
| - surface_->WillDraw();
|
| -}
|
| -
|
| -void SurfaceFactoryOwner::SetBeginFrameSource(
|
| - cc::BeginFrameSource* begin_frame_source) {
|
| - if (surface_)
|
| - surface_->SetBeginFrameSource(begin_frame_source);
|
| -}
|
| -
|
| -////////////////////////////////////////////////////////////////////////////////
|
| -// SurfaceFactoryOwner, private:
|
| -
|
| -SurfaceFactoryOwner::~SurfaceFactoryOwner() {
|
| - if (surface_factory_->manager())
|
| - surface_factory_->manager()->InvalidateFrameSinkId(frame_sink_id_);
|
| -}
|
| -
|
| -////////////////////////////////////////////////////////////////////////////////
|
| // Surface, public:
|
|
|
| Surface::Surface()
|
| : window_(new aura::Window(new CustomWindowDelegate(this))),
|
| surface_manager_(
|
| aura::Env::GetInstance()->context_factory()->GetSurfaceManager()),
|
| - factory_owner_(new SurfaceFactoryOwner) {
|
| + factory_owner_(new ExoCompositorFrameSink) {
|
| window_->SetType(ui::wm::WINDOW_TYPE_CONTROL);
|
| window_->SetName("ExoSurface");
|
| window_->SetProperty(kSurfaceKey, this);
|
|
|