Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: services/ui/ws/frame_generator.h

Issue 2579693004: GpuCompositorFrameSink implements cc::mojom::DisplayPrivate (Closed)
Patch Set: Address comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void OnWindowDestroying(ServerWindow* window) override; 121 void OnWindowDestroying(ServerWindow* window) override;
122 122
123 FrameGeneratorDelegate* delegate_; 123 FrameGeneratorDelegate* delegate_;
124 ServerWindow* const root_window_; 124 ServerWindow* const root_window_;
125 float device_scale_factor_ = 1.f; 125 float device_scale_factor_ = 1.f;
126 126
127 gfx::Size last_submitted_frame_size_; 127 gfx::Size last_submitted_frame_size_;
128 cc::LocalFrameId local_frame_id_; 128 cc::LocalFrameId local_frame_id_;
129 cc::SurfaceIdAllocator id_allocator_; 129 cc::SurfaceIdAllocator id_allocator_;
130 cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_; 130 cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_;
131 cc::mojom::DisplayPrivatePtr display_private_;
131 132
132 // Active references held by this client to surfaces that could be embedded in 133 // Active references held by this client to surfaces that could be embedded in
133 // a CompositorFrame submitted from FrameGenerator. 134 // a CompositorFrame submitted from FrameGenerator.
134 std::unordered_map<cc::FrameSinkId, cc::SurfaceReference, cc::FrameSinkIdHash> 135 std::unordered_map<cc::FrameSinkId, cc::SurfaceReference, cc::FrameSinkIdHash>
135 active_references_; 136 active_references_;
136 137
137 // References to surfaces that should be removed after a CompositorFrame has 138 // References to surfaces that should be removed after a CompositorFrame has
138 // been submitted and the surfaces are not being used. 139 // been submitted and the surfaces are not being used.
139 std::vector<cc::SurfaceReference> references_to_remove_; 140 std::vector<cc::SurfaceReference> references_to_remove_;
140 141
(...skipping 12 matching lines...) Expand all
153 base::WeakPtrFactory<FrameGenerator> weak_factory_; 154 base::WeakPtrFactory<FrameGenerator> weak_factory_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); 156 DISALLOW_COPY_AND_ASSIGN(FrameGenerator);
156 }; 157 };
157 158
158 } // namespace ws 159 } // namespace ws
159 160
160 } // namespace ui 161 } // namespace ui
161 162
162 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ 163 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698