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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.h

Issue 2683583005: Move display_ From CompositorFrameSinkSupport To GpuDisplayCompositorFrameSink (Closed)
Patch Set: rebase Created 3 years, 10 months 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
Index: components/display_compositor/gpu_compositor_frame_sink.h
diff --git a/components/display_compositor/gpu_compositor_frame_sink.h b/components/display_compositor/gpu_compositor_frame_sink.h
index 5cfce7665a3e6ae2c758ef64c6f9913e0973f0c6..0b1acb9e3bf56a1891681ae8f9101f8040b14c20 100644
--- a/components/display_compositor/gpu_compositor_frame_sink.h
+++ b/components/display_compositor/gpu_compositor_frame_sink.h
@@ -18,10 +18,6 @@
#include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
#include "mojo/public/cpp/bindings/binding.h"
-namespace cc {
-class Display;
-}
-
namespace display_compositor {
// Server side representation of a WindowSurface.
@@ -32,10 +28,7 @@ class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
public:
GpuCompositorFrameSink(
GpuCompositorFrameSinkDelegate* delegate,
- cc::SurfaceManager* surface_manager,
- const cc::FrameSinkId& frame_sink_id,
- std::unique_ptr<cc::Display> display,
- std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
+ std::unique_ptr<cc::CompositorFrameSinkSupport>,
cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client);
@@ -60,8 +53,7 @@ class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
void OnPrivateConnectionLost();
GpuCompositorFrameSinkDelegate* const delegate_;
- cc::CompositorFrameSinkSupport support_;
- cc::SurfaceManager* const surface_manager_;
+ std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
private:
// cc::CompositorFrameSinkSupportClient implementation:
@@ -70,7 +62,6 @@ class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
void WillDrawSurface() override;
-
bool client_connection_lost_ = false;
bool private_connection_lost_ = false;
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support_unittest.cc ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698