| 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_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 std::unique_ptr<cc::CopyOutputRequest> request) override; | 49 std::unique_ptr<cc::CopyOutputRequest> request) override; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 // cc::CompositorFrameSinkSupportClient implementation: | 52 // cc::CompositorFrameSinkSupportClient implementation: |
| 53 void DidReceiveCompositorFrameAck( | 53 void DidReceiveCompositorFrameAck( |
| 54 const cc::ReturnedResourceArray& resources) override; | 54 const cc::ReturnedResourceArray& resources) override; |
| 55 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 55 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 56 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 56 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 57 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, | 57 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, |
| 58 const gfx::Rect& damage_rect) override; | 58 const gfx::Rect& damage_rect) override; |
| 59 void DidRejectCompositorFrame() override; |
| 59 | 60 |
| 60 void OnClientConnectionLost(); | 61 void OnClientConnectionLost(); |
| 61 void OnPrivateConnectionLost(); | 62 void OnPrivateConnectionLost(); |
| 62 | 63 |
| 63 GpuCompositorFrameSinkDelegate* const delegate_; | 64 GpuCompositorFrameSinkDelegate* const delegate_; |
| 64 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; | 65 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; |
| 65 | 66 |
| 66 bool client_connection_lost_ = false; | 67 bool client_connection_lost_ = false; |
| 67 bool private_connection_lost_ = false; | 68 bool private_connection_lost_ = false; |
| 68 | 69 |
| 69 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 70 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
| 70 mojo::Binding<cc::mojom::MojoCompositorFrameSink> | 71 mojo::Binding<cc::mojom::MojoCompositorFrameSink> |
| 71 compositor_frame_sink_binding_; | 72 compositor_frame_sink_binding_; |
| 72 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 73 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
| 73 compositor_frame_sink_private_binding_; | 74 compositor_frame_sink_private_binding_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 76 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace viz | 79 } // namespace viz |
| 79 | 80 |
| 80 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ | 81 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |