| OLD | NEW |
| (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_ | |
| OLD | NEW |