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

Unified Diff: components/exo/surface.cc

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)
Patch Set: Created 4 years, 1 month 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 | « components/exo/surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « components/exo/surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698