OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include "components/display_compositor/gpu_compositor_frame_sink.h" | 8 #include "components/display_compositor/gpu_compositor_frame_sink.h" |
9 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" | 9 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" |
10 #include "mojo/public/cpp/bindings/associated_binding.h" | 10 #include "mojo/public/cpp/bindings/associated_binding.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // cc::mojom::DisplayPrivate: | 31 // cc::mojom::DisplayPrivate: |
32 void SetDisplayVisible(bool visible) override; | 32 void SetDisplayVisible(bool visible) override; |
33 void ResizeDisplay(const gfx::Size& size) override; | 33 void ResizeDisplay(const gfx::Size& size) override; |
34 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override; | 34 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override; |
35 void SetOutputIsSecure(bool secure) override; | 35 void SetOutputIsSecure(bool secure) override; |
36 | 36 |
37 private: | 37 private: |
38 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_; | 38 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_; |
39 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; | 39 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; |
40 | 40 |
| 41 std::unique_ptr<cc::Display> display_; |
| 42 std::unique_ptr<cc::BeginFrameSource> display_begin_frame_source_; |
| 43 |
41 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink); | 44 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink); |
42 }; | 45 }; |
43 | 46 |
44 } // namespace display_compositor | 47 } // namespace display_compositor |
45 | 48 |
46 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ | 49 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |