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

Unified Diff: services/ui/surfaces/gpu_display_compositor_frame_sink.h

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
Index: services/ui/surfaces/gpu_display_compositor_frame_sink.h
diff --git a/services/ui/surfaces/gpu_display_compositor_frame_sink.h b/services/ui/surfaces/gpu_display_compositor_frame_sink.h
deleted file mode 100644
index 15bba8a58fe008c23d4d6a015134eaf6c6e1a644..0000000000000000000000000000000000000000
--- a/services/ui/surfaces/gpu_display_compositor_frame_sink.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
-#define SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
-
-#include "mojo/public/cpp/bindings/associated_binding.h"
-#include "services/ui/surfaces/gpu_compositor_frame_sink.h"
-
-namespace ui {
-
-class GpuDisplayCompositorFrameSink : public GpuCompositorFrameSink,
- public cc::mojom::DisplayPrivate {
- public:
- GpuDisplayCompositorFrameSink(
- DisplayCompositor* display_compositor,
- const cc::FrameSinkId& frame_sink_id,
- std::unique_ptr<cc::Display> display,
- std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
- cc::mojom::MojoCompositorFrameSinkAssociatedRequest request,
- cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
- cc::mojom::MojoCompositorFrameSinkClientPtr client,
- cc::mojom::DisplayPrivateAssociatedRequest display_private_request);
-
- ~GpuDisplayCompositorFrameSink() override;
-
- // cc::mojom::DisplayPrivate:
- void SetDisplayVisible(bool visible) override;
- void ResizeDisplay(const gfx::Size& size) override;
- void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override;
- void SetOutputIsSecure(bool secure) override;
-
- private:
- mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_;
- mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
-
- DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink);
-};
-
-} // namespace ui
-
-#endif // SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
« no previous file with comments | « services/ui/surfaces/gpu_compositor_frame_sink.cc ('k') | services/ui/surfaces/gpu_display_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698