| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 87 void OnSurfaceDestroyed(const cc::SurfaceId& surface_id) override; |
| 88 void OnSurfaceDamageExpected(const cc::SurfaceId& surface_id, | 88 void OnSurfaceDamageExpected(const cc::SurfaceId& surface_id, |
| 89 const cc::BeginFrameArgs& args) override; | 89 const cc::BeginFrameArgs& args) override; |
| 90 void OnSurfaceWillDraw(const cc::SurfaceId& surface_id) override {} |
| 90 | 91 |
| 91 // GpuCompositorFrameSinkDelegate implementation. | 92 // GpuCompositorFrameSinkDelegate implementation. |
| 92 void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id, | 93 void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id, |
| 93 bool destroy_compositor_frame_sink) override; | 94 bool destroy_compositor_frame_sink) override; |
| 94 void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id, | 95 void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id, |
| 95 bool destroy_compositor_frame_sink) override; | 96 bool destroy_compositor_frame_sink) override; |
| 96 | 97 |
| 97 // SurfaceManager should be the first object constructed and the last object | 98 // SurfaceManager should be the first object constructed and the last object |
| 98 // destroyed in order to ensure that all other objects that depend on it have | 99 // destroyed in order to ensure that all other objects that depend on it have |
| 99 // access to a valid pointer for the entirety of their lifetimes. | 100 // access to a valid pointer for the entirety of their lifetimes. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 113 | 114 |
| 114 cc::mojom::FrameSinkManagerClientPtr client_; | 115 cc::mojom::FrameSinkManagerClientPtr client_; |
| 115 mojo::Binding<cc::mojom::FrameSinkManager> binding_; | 116 mojo::Binding<cc::mojom::FrameSinkManager> binding_; |
| 116 | 117 |
| 117 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager); | 118 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager); |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 } // namespace viz | 121 } // namespace viz |
| 121 | 122 |
| 122 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ | 123 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ |
| OLD | NEW |