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

Unified Diff: components/display_compositor/gpu_display_compositor_frame_sink.h

Issue 2651213004: Revert of Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: 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: components/display_compositor/gpu_display_compositor_frame_sink.h
diff --git a/components/display_compositor/gpu_display_compositor_frame_sink.h b/components/display_compositor/gpu_display_compositor_frame_sink.h
deleted file mode 100644
index 588ef754612b7d05ac9ef1cc9d1c5c452e2d7d3a..0000000000000000000000000000000000000000
--- a/components/display_compositor/gpu_display_compositor_frame_sink.h
+++ /dev/null
@@ -1,46 +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 COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
-#define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
-
-#include "components/display_compositor/gpu_compositor_frame_sink.h"
-#include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
-#include "mojo/public/cpp/bindings/associated_binding.h"
-
-namespace display_compositor {
-
-class DISPLAY_COMPOSITOR_EXPORT GpuDisplayCompositorFrameSink
- : public GpuCompositorFrameSink,
- public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate) {
- public:
- GpuDisplayCompositorFrameSink(
- 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,
- 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 display_compositor
-
-#endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698