| 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 SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void DidReceiveCompositorFrameAck() override; | 76 void DidReceiveCompositorFrameAck() override; |
| 77 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 77 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 78 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 78 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 79 void WillDrawSurface() override; | 79 void WillDrawSurface() override; |
| 80 | 80 |
| 81 void OnClientConnectionLost(); | 81 void OnClientConnectionLost(); |
| 82 void OnPrivateConnectionLost(); | 82 void OnPrivateConnectionLost(); |
| 83 | 83 |
| 84 DisplayCompositor* const display_compositor_; | 84 DisplayCompositor* const display_compositor_; |
| 85 | 85 |
| 86 std::unique_ptr<cc::Display> display_; |
| 86 cc::CompositorFrameSinkSupport support_; | 87 cc::CompositorFrameSinkSupport support_; |
| 87 | 88 |
| 88 bool client_connection_lost_ = false; | 89 bool client_connection_lost_ = false; |
| 89 bool private_connection_lost_ = false; | 90 bool private_connection_lost_ = false; |
| 90 | 91 |
| 91 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 92 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
| 92 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; | 93 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; |
| 93 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 94 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
| 94 compositor_frame_sink_private_binding_; | 95 compositor_frame_sink_private_binding_; |
| 95 mojo::Binding<cc::mojom::DisplayPrivate> display_private_binding_; | 96 mojo::Binding<cc::mojom::DisplayPrivate> display_private_binding_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 98 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace ui | 101 } // namespace ui |
| 101 | 102 |
| 102 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ | 103 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |