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. | |
114 // While true the window is not drawn. This is initially true if the window | 112 // 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 | 113 // 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 | 114 // 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 | 115 // 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. | 116 // the underlay is not necessarily as big as the window. |
119 bool waiting_for_initial_frames_; | 117 bool waiting_for_initial_frames_; |
120 | 118 |
121 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); | 119 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); |
122 }; | 120 }; |
123 | 121 |
124 } // namespace ws | 122 } // namespace ws |
125 } // namespace ui | 123 } // namespace ui |
126 | 124 |
127 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ | 125 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ |
OLD | NEW |