| 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_MOJO_FRAME_SINK_MANAGER_H_ | 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ |
| 6 #define COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ | 6 #define COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // reference. But the map can continue to iterate and try to use it. Passing | 77 // reference. But the map can continue to iterate and try to use it. Passing |
| 78 // by value avoids this. | 78 // by value avoids this. |
| 79 void DestroyCompositorFrameSink(cc::FrameSinkId frame_sink_id); | 79 void DestroyCompositorFrameSink(cc::FrameSinkId frame_sink_id); |
| 80 | 80 |
| 81 // cc::SurfaceObserver implementation. | 81 // cc::SurfaceObserver implementation. |
| 82 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override; | 82 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override; |
| 83 void OnSurfaceDamaged(const cc::SurfaceId& surface_id, | 83 void OnSurfaceDamaged(const cc::SurfaceId& surface_id, |
| 84 const cc::BeginFrameAck& ack, | 84 const cc::BeginFrameAck& ack, |
| 85 bool* changed) override; | 85 bool* changed) override; |
| 86 void OnSurfaceDiscarded(const cc::SurfaceId& surface_id) override; | 86 void OnSurfaceDiscarded(const cc::SurfaceId& surface_id) override; |
| 87 void OnSurfaceDestroyed(const cc::SurfaceId& surface_id) override; | |
| 88 void OnSurfaceDamageExpected(const cc::SurfaceId& surface_id, | 87 void OnSurfaceDamageExpected(const cc::SurfaceId& surface_id, |
| 89 const cc::BeginFrameArgs& args) override; | 88 const cc::BeginFrameArgs& args) override; |
| 90 | 89 |
| 91 // GpuCompositorFrameSinkDelegate implementation. | 90 // GpuCompositorFrameSinkDelegate implementation. |
| 92 void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id, | 91 void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id, |
| 93 bool destroy_compositor_frame_sink) override; | 92 bool destroy_compositor_frame_sink) override; |
| 94 void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id, | 93 void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id, |
| 95 bool destroy_compositor_frame_sink) override; | 94 bool destroy_compositor_frame_sink) override; |
| 96 | 95 |
| 97 // SurfaceManager should be the first object constructed and the last object | 96 // SurfaceManager should be the first object constructed and the last object |
| (...skipping 15 matching lines...) Expand all Loading... |
| 113 | 112 |
| 114 cc::mojom::FrameSinkManagerClientPtr client_; | 113 cc::mojom::FrameSinkManagerClientPtr client_; |
| 115 mojo::Binding<cc::mojom::FrameSinkManager> binding_; | 114 mojo::Binding<cc::mojom::FrameSinkManager> binding_; |
| 116 | 115 |
| 117 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager); | 116 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager); |
| 118 }; | 117 }; |
| 119 | 118 |
| 120 } // namespace viz | 119 } // namespace viz |
| 121 | 120 |
| 122 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ | 121 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ |
| OLD | NEW |