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

Side by Side Diff: services/ui/surfaces/gpu_display_compositor_frame_sink.h

Issue 2651213004: Revert of Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: 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 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 SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
6 #define SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
7
8 #include "mojo/public/cpp/bindings/associated_binding.h"
9 #include "services/ui/surfaces/gpu_compositor_frame_sink.h"
10
11 namespace ui {
12
13 class GpuDisplayCompositorFrameSink : public GpuCompositorFrameSink,
14 public cc::mojom::DisplayPrivate {
15 public:
16 GpuDisplayCompositorFrameSink(
17 DisplayCompositor* display_compositor,
18 const cc::FrameSinkId& frame_sink_id,
19 std::unique_ptr<cc::Display> display,
20 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
21 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request,
22 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
23 cc::mojom::MojoCompositorFrameSinkClientPtr client,
24 cc::mojom::DisplayPrivateAssociatedRequest display_private_request);
25
26 ~GpuDisplayCompositorFrameSink() override;
27
28 // cc::mojom::DisplayPrivate:
29 void SetDisplayVisible(bool visible) override;
30 void ResizeDisplay(const gfx::Size& size) override;
31 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override;
32 void SetOutputIsSecure(bool secure) override;
33
34 private:
35 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_;
36 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
37
38 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink);
39 };
40
41 } // namespace ui
42
43 #endif // SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« 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