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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
7
8 #include "components/display_compositor/gpu_compositor_frame_sink.h"
9 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
10 #include "mojo/public/cpp/bindings/associated_binding.h"
11
12 namespace display_compositor {
13
14 class DISPLAY_COMPOSITOR_EXPORT GpuDisplayCompositorFrameSink
15 : public GpuCompositorFrameSink,
16 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate) {
17 public:
18 GpuDisplayCompositorFrameSink(
19 GpuCompositorFrameSinkDelegate* delegate,
20 cc::SurfaceManager* surface_manager,
21 const cc::FrameSinkId& frame_sink_id,
22 std::unique_ptr<cc::Display> display,
23 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
24 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request,
25 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
26 cc::mojom::MojoCompositorFrameSinkClientPtr client,
27 cc::mojom::DisplayPrivateAssociatedRequest display_private_request);
28
29 ~GpuDisplayCompositorFrameSink() override;
30
31 // cc::mojom::DisplayPrivate:
32 void SetDisplayVisible(bool visible) override;
33 void ResizeDisplay(const gfx::Size& size) override;
34 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override;
35 void SetOutputIsSecure(bool secure) override;
36
37 private:
38 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_;
39 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
40
41 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink);
42 };
43
44 } // namespace display_compositor
45
46 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698