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

Unified Diff: components/exo/surface.h

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/exo_compositor_frame_sink.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 91c904290e83daf3a5193bb5cda448b2ebc49bf0..a823a3efce781bc8a87fc421f72ceb0b6f72e4e3 100644
--- a/components/exo/surface.h
+++ b/components/exo/surface.h
@@ -18,6 +18,7 @@
#include "cc/resources/transferable_resource.h"
#include "cc/scheduler/begin_frame_source.h"
#include "cc/surfaces/surface_factory_client.h"
+#include "components/exo/exo_compositor_frame_sink.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "third_party/skia/include/core/SkXfermode.h"
#include "ui/aura/window.h"
@@ -60,32 +61,6 @@ using CursorProvider = Pointer;
// contents of Buffers. It's keeped alive by references from
// release_callbacks_. It's destroyed when its owning Surface is destroyed and
// the last outstanding release callback is called.
-class SurfaceFactoryOwner : public base::RefCounted<SurfaceFactoryOwner>,
- public cc::SurfaceFactoryClient {
- public:
- SurfaceFactoryOwner();
-
- // Overridden from cc::SurfaceFactoryClient:
- void ReturnResources(const cc::ReturnedResourceArray& resources) override;
- void WillDrawSurface(const cc::LocalFrameId& id,
- const gfx::Rect& damage_rect) override;
- void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
-
- private:
- friend class base::RefCounted<SurfaceFactoryOwner>;
- friend class Surface;
-
- ~SurfaceFactoryOwner() override;
-
- std::map<int,
- std::pair<scoped_refptr<SurfaceFactoryOwner>,
- std::unique_ptr<cc::SingleReleaseCallback>>>
- release_callbacks_;
- cc::FrameSinkId frame_sink_id_;
- std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_;
- std::unique_ptr<cc::SurfaceFactory> surface_factory_;
- Surface* surface_ = nullptr;
-};
// This class represents a rectangular area that is displayed on the screen.
// It has a location, size and pixel contents.
@@ -351,7 +326,7 @@ class Surface : public ui::ContextFactoryObserver,
cc::SurfaceManager* surface_manager_;
- scoped_refptr<SurfaceFactoryOwner> factory_owner_;
+ scoped_refptr<ExoCompositorFrameSink> factory_owner_;
// The Surface Id currently attached to the window.
cc::LocalFrameId local_frame_id_;
« no previous file with comments | « components/exo/exo_compositor_frame_sink.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698