| 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_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ | 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ |
| 6 #define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ | 6 #define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 cc::mojom::MojoCompositorFrameSinkClientPtr client, | 104 cc::mojom::MojoCompositorFrameSinkClientPtr client, |
| 105 cc::mojom::DisplayPrivateRequest display_private_request); | 105 cc::mojom::DisplayPrivateRequest display_private_request); |
| 106 | 106 |
| 107 ServerWindow* window_; | 107 ServerWindow* window_; |
| 108 | 108 |
| 109 using TypeToCompositorFrameSinkMap = | 109 using TypeToCompositorFrameSinkMap = |
| 110 std::map<mojom::CompositorFrameSinkType, CompositorFrameSinkData>; | 110 std::map<mojom::CompositorFrameSinkType, CompositorFrameSinkData>; |
| 111 | 111 |
| 112 TypeToCompositorFrameSinkMap type_to_compositor_frame_sink_map_; | 112 TypeToCompositorFrameSinkMap type_to_compositor_frame_sink_map_; |
| 113 | 113 |
| 114 // TODO(mfomitchev): This is currently always false. Confirm if we still need |
| 115 // this. |
| 114 // While true the window is not drawn. This is initially true if the window | 116 // While true the window is not drawn. This is initially true if the window |
| 115 // has the property |kWaitForUnderlay_Property|. This is set to false once | 117 // has the property |kWaitForUnderlay_Property|. This is set to false once |
| 116 // the underlay and default surface have been set *and* their size is at | 118 // the underlay and default surface have been set *and* their size is at |
| 117 // least that of the window. Ideally we would wait for sizes to match, but | 119 // least that of the window. Ideally we would wait for sizes to match, but |
| 118 // the underlay is not necessarily as big as the window. | 120 // the underlay is not necessarily as big as the window. |
| 119 bool waiting_for_initial_frames_; | 121 bool waiting_for_initial_frames_; |
| 120 | 122 |
| 121 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); | 123 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 } // namespace ws | 126 } // namespace ws |
| 125 } // namespace ui | 127 } // namespace ui |
| 126 | 128 |
| 127 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ | 129 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ |
| OLD | NEW |