| 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 28 matching lines...) Expand all Loading... |
| 39 // cc::mojom::MojoCompositorFrameSink: | 39 // cc::mojom::MojoCompositorFrameSink: |
| 40 void EvictFrame() override; | 40 void EvictFrame() override; |
| 41 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 41 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
| 42 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 42 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 43 cc::CompositorFrame frame) override; | 43 cc::CompositorFrame frame) override; |
| 44 void Require(const cc::LocalSurfaceId& local_surface_id, | 44 void Require(const cc::LocalSurfaceId& local_surface_id, |
| 45 const cc::SurfaceSequence& sequence) override; | 45 const cc::SurfaceSequence& sequence) override; |
| 46 void Satisfy(const cc::SurfaceSequence& sequence) override; | 46 void Satisfy(const cc::SurfaceSequence& sequence) override; |
| 47 | 47 |
| 48 // cc::mojom::MojoCompositorFrameSinkPrivate: | 48 // cc::mojom::MojoCompositorFrameSinkPrivate: |
| 49 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; | |
| 50 void RemoveChildFrameSink( | |
| 51 const cc::FrameSinkId& child_frame_sink_id) override; | |
| 52 void RequestCopyOfSurface( | 49 void RequestCopyOfSurface( |
| 53 std::unique_ptr<cc::CopyOutputRequest> request) override; | 50 std::unique_ptr<cc::CopyOutputRequest> request) override; |
| 54 | 51 |
| 55 private: | 52 private: |
| 56 // cc::CompositorFrameSinkSupportClient implementation: | 53 // cc::CompositorFrameSinkSupportClient implementation: |
| 57 void DidReceiveCompositorFrameAck() override; | 54 void DidReceiveCompositorFrameAck() override; |
| 58 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 55 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 59 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 56 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 60 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, | 57 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, |
| 61 const gfx::Rect& damage_rect) override; | 58 const gfx::Rect& damage_rect) override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 74 compositor_frame_sink_binding_; | 71 compositor_frame_sink_binding_; |
| 75 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 72 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
| 76 compositor_frame_sink_private_binding_; | 73 compositor_frame_sink_private_binding_; |
| 77 | 74 |
| 78 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 75 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
| 79 }; | 76 }; |
| 80 | 77 |
| 81 } // namespace display_compositor | 78 } // namespace display_compositor |
| 82 | 79 |
| 83 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 80 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |