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

Unified Diff: components/display_compositor/gpu_offscreen_compositor_frame_sink.cc

Issue 2654693003: Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: Refactor code Created 3 years, 11 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
« no previous file with comments | « components/display_compositor/gpu_offscreen_compositor_frame_sink.h ('k') | services/ui/surfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/display_compositor/gpu_offscreen_compositor_frame_sink.cc
diff --git a/services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc b/components/display_compositor/gpu_offscreen_compositor_frame_sink.cc
similarity index 76%
rename from services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc
rename to components/display_compositor/gpu_offscreen_compositor_frame_sink.cc
index 6b6567a9383c94d78ef399e3a27264674075db71..e47474ded0a1409a02f7ecc2bbce0d2494493672 100644
--- a/services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc
+++ b/components/display_compositor/gpu_offscreen_compositor_frame_sink.cc
@@ -2,18 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "services/ui/surfaces/gpu_offscreen_compositor_frame_sink.h"
+#include "components/display_compositor/gpu_offscreen_compositor_frame_sink.h"
-namespace ui {
+namespace display_compositor {
GpuOffscreenCompositorFrameSink::GpuOffscreenCompositorFrameSink(
- DisplayCompositor* display_compositor,
+ GpuCompositorFrameSinkDelegate* delegate,
+ cc::SurfaceManager* surface_manager,
const cc::FrameSinkId& frame_sink_id,
cc::mojom::MojoCompositorFrameSinkRequest request,
cc::mojom::MojoCompositorFrameSinkPrivateRequest
compositor_frame_sink_private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client)
- : GpuCompositorFrameSink(display_compositor,
+ : GpuCompositorFrameSink(delegate,
+ surface_manager,
frame_sink_id,
nullptr,
nullptr,
@@ -27,4 +29,4 @@ GpuOffscreenCompositorFrameSink::GpuOffscreenCompositorFrameSink(
GpuOffscreenCompositorFrameSink::~GpuOffscreenCompositorFrameSink() = default;
-} // namespace ui
+} // namespace display_compositor
« no previous file with comments | « components/display_compositor/gpu_offscreen_compositor_frame_sink.h ('k') | services/ui/surfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698