| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 std::unique_ptr<cc::Display> display, | 38 std::unique_ptr<cc::Display> display, |
| 39 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, | 39 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, |
| 40 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, | 40 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, |
| 41 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 41 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 42 | 42 |
| 43 ~GpuCompositorFrameSink() override; | 43 ~GpuCompositorFrameSink() override; |
| 44 | 44 |
| 45 // cc::mojom::MojoCompositorFrameSink: | 45 // cc::mojom::MojoCompositorFrameSink: |
| 46 void EvictFrame() override; | 46 void EvictFrame() override; |
| 47 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 47 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
| 48 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id, | 48 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 49 cc::CompositorFrame frame) override; | 49 cc::CompositorFrame frame) override; |
| 50 void Require(const cc::LocalFrameId& local_frame_id, | 50 void Require(const cc::LocalSurfaceId& local_surface_id, |
| 51 const cc::SurfaceSequence& sequence) override; | 51 const cc::SurfaceSequence& sequence) override; |
| 52 void Satisfy(const cc::SurfaceSequence& sequence) override; | 52 void Satisfy(const cc::SurfaceSequence& sequence) override; |
| 53 | 53 |
| 54 // cc::mojom::MojoCompositorFrameSinkPrivate: | 54 // cc::mojom::MojoCompositorFrameSinkPrivate: |
| 55 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; | 55 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; |
| 56 void RemoveChildFrameSink( | 56 void RemoveChildFrameSink( |
| 57 const cc::FrameSinkId& child_frame_sink_id) override; | 57 const cc::FrameSinkId& child_frame_sink_id) override; |
| 58 | 58 |
| 59 protected: | 59 protected: |
| 60 void OnClientConnectionLost(); | 60 void OnClientConnectionLost(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 81 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 81 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
| 82 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 82 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
| 83 compositor_frame_sink_private_binding_; | 83 compositor_frame_sink_private_binding_; |
| 84 | 84 |
| 85 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 85 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace display_compositor | 88 } // namespace display_compositor |
| 89 | 89 |
| 90 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 90 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |