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