| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_FRAME_GENERATOR_H_ | 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_H_ |
| 6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_ | 6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // ServerWindowObserver implementation. | 116 // ServerWindowObserver implementation. |
| 117 void OnWindowDestroying(ServerWindow* window) override; | 117 void OnWindowDestroying(ServerWindow* window) override; |
| 118 | 118 |
| 119 FrameGeneratorDelegate* delegate_; | 119 FrameGeneratorDelegate* delegate_; |
| 120 ServerWindow* const root_window_; | 120 ServerWindow* const root_window_; |
| 121 | 121 |
| 122 gfx::Size last_submitted_frame_size_; | 122 gfx::Size last_submitted_frame_size_; |
| 123 cc::LocalFrameId local_frame_id_; | 123 cc::LocalFrameId local_frame_id_; |
| 124 cc::SurfaceIdAllocator id_allocator_; | 124 cc::SurfaceIdAllocator id_allocator_; |
| 125 cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_; | 125 cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_; |
| 126 cc::mojom::DisplayPrivatePtr display_private_; |
| 126 | 127 |
| 127 // Active references held by this client to surfaces that could be embedded in | 128 // Active references held by this client to surfaces that could be embedded in |
| 128 // a CompositorFrame submitted from FrameGenerator. | 129 // a CompositorFrame submitted from FrameGenerator. |
| 129 std::unordered_map<cc::FrameSinkId, cc::SurfaceReference, cc::FrameSinkIdHash> | 130 std::unordered_map<cc::FrameSinkId, cc::SurfaceReference, cc::FrameSinkIdHash> |
| 130 active_references_; | 131 active_references_; |
| 131 | 132 |
| 132 // References to surfaces that should be removed after a CompositorFrame has | 133 // References to surfaces that should be removed after a CompositorFrame has |
| 133 // been submitted and the surfaces are not being used. | 134 // been submitted and the surfaces are not being used. |
| 134 std::vector<cc::SurfaceReference> references_to_remove_; | 135 std::vector<cc::SurfaceReference> references_to_remove_; |
| 135 | 136 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 148 base::WeakPtrFactory<FrameGenerator> weak_factory_; | 149 base::WeakPtrFactory<FrameGenerator> weak_factory_; |
| 149 | 150 |
| 150 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); | 151 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } // namespace ws | 154 } // namespace ws |
| 154 | 155 |
| 155 } // namespace ui | 156 } // namespace ui |
| 156 | 157 |
| 157 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ | 158 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ |
| OLD | NEW |