| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id, | 88 void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id, |
| 89 bool destroy_compositor_frame_sink) override; | 89 bool destroy_compositor_frame_sink) override; |
| 90 void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id, | 90 void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id, |
| 91 bool destroy_compositor_frame_sink) override; | 91 bool destroy_compositor_frame_sink) override; |
| 92 | 92 |
| 93 // SurfaceManager should be the first object constructed and the last object | 93 // SurfaceManager should be the first object constructed and the last object |
| 94 // destroyed in order to ensure that all other objects that depend on it have | 94 // destroyed in order to ensure that all other objects that depend on it have |
| 95 // access to a valid pointer for the entirety of their lifetimes. | 95 // access to a valid pointer for the entirety of their lifetimes. |
| 96 cc::SurfaceManager manager_; | 96 cc::SurfaceManager manager_; |
| 97 | 97 |
| 98 std::unique_ptr<cc::SurfaceDependencyTracker> dependency_tracker_; |
| 99 |
| 98 // Provides a cc::Display for CreateRootCompositorFrameSink(). | 100 // Provides a cc::Display for CreateRootCompositorFrameSink(). |
| 99 DisplayProvider* const display_provider_; | 101 DisplayProvider* const display_provider_; |
| 100 | 102 |
| 101 std::unordered_map<cc::FrameSinkId, | 103 std::unordered_map<cc::FrameSinkId, |
| 102 std::unique_ptr<cc::mojom::MojoCompositorFrameSink>, | 104 std::unique_ptr<cc::mojom::MojoCompositorFrameSink>, |
| 103 cc::FrameSinkIdHash> | 105 cc::FrameSinkIdHash> |
| 104 compositor_frame_sinks_; | 106 compositor_frame_sinks_; |
| 105 | 107 |
| 106 base::ThreadChecker thread_checker_; | 108 base::ThreadChecker thread_checker_; |
| 107 | 109 |
| 108 cc::mojom::FrameSinkManagerClientPtr client_; | 110 cc::mojom::FrameSinkManagerClientPtr client_; |
| 109 mojo::Binding<cc::mojom::FrameSinkManager> binding_; | 111 mojo::Binding<cc::mojom::FrameSinkManager> binding_; |
| 110 | 112 |
| 111 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager); | 113 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager); |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace viz | 116 } // namespace viz |
| 115 | 117 |
| 116 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ | 118 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ |
| OLD | NEW |