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

Unified Diff: services/ui/ws/frame_generator.h

Issue 2470143006: Remove dependency on SurfaceManager in FrameGenerator (Closed)
Patch Set: Remove a couple of bad std::moves 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 | « services/ui/ws/display_manager.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator.h
diff --git a/services/ui/ws/frame_generator.h b/services/ui/ws/frame_generator.h
index 276e763f7c19581f970df68c850bc1e71903779f..6479e92a1f1b32ab3792ff46db4fde953a088f4f 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -51,9 +51,7 @@ class ServerWindowCompositorFrameSink;
class FrameGenerator : public ServerWindowTracker,
public cc::mojom::MojoCompositorFrameSinkClient {
public:
- FrameGenerator(FrameGeneratorDelegate* delegate,
- ServerWindow* root_window,
- scoped_refptr<DisplayCompositor> display_compositor);
+ FrameGenerator(FrameGeneratorDelegate* delegate, ServerWindow* root_window);
~FrameGenerator() override;
void OnGpuChannelEstablished(scoped_refptr<gpu::GpuChannelHost> gpu_channel);
@@ -110,11 +108,12 @@ class FrameGenerator : public ServerWindowTracker,
// management.
void ReleaseAllSurfaceReferences();
+ ui::DisplayCompositor* GetDisplayCompositor();
+
// ServerWindowObserver implementation.
void OnWindowDestroying(ServerWindow* window) override;
FrameGeneratorDelegate* delegate_;
- scoped_refptr<DisplayCompositor> display_compositor_;
cc::FrameSinkId frame_sink_id_;
ServerWindow* const root_window_;
cc::SurfaceSequenceGenerator surface_sequence_generator_;
« no previous file with comments | « services/ui/ws/display_manager.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698