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

Side by Side Diff: blimp/client/core/compositor/blimp_compositor.h

Issue 2320823003: cc/blimp: Remove Initialize and Close messages. (Closed)
Patch Set: format Created 4 years, 3 months 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
« no previous file with comments | « no previous file | blimp/client/core/compositor/blimp_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 5 #ifndef BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
6 #define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 6 #define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 // The unique identifier for the render widget for this compositor. 174 // The unique identifier for the render widget for this compositor.
175 const int render_widget_id_; 175 const int render_widget_id_;
176 176
177 BlimpCompositorClient* client_; 177 BlimpCompositorClient* client_;
178 178
179 BlimpCompositorDependencies* compositor_dependencies_; 179 BlimpCompositorDependencies* compositor_dependencies_;
180 180
181 std::unique_ptr<cc::LayerTreeHostInterface> host_; 181 std::unique_ptr<cc::LayerTreeHostInterface> host_;
182 182
183 // Whether or not |host_| should be visible. This is stored in case |host_|
184 // is null when SetVisible() is called.
185 bool host_should_be_visible_;
186
187 // The SurfaceFactory is bound to the lifetime of the BlimpOutputSurface. When 183 // The SurfaceFactory is bound to the lifetime of the BlimpOutputSurface. When
188 // detached, the surface factory will be destroyed. 184 // detached, the surface factory will be destroyed.
189 std::unique_ptr<cc::SurfaceFactory> surface_factory_; 185 std::unique_ptr<cc::SurfaceFactory> surface_factory_;
190 base::WeakPtr<BlimpOutputSurface> output_surface_; 186 base::WeakPtr<BlimpOutputSurface> output_surface_;
191 187
192 // Whether or not |host_| has asked for an output surface. 188 // Whether or not |host_| has asked for an output surface.
193 bool output_surface_request_pending_; 189 bool output_surface_request_pending_;
194 190
195 // Data for the current frame. 191 // Data for the current frame.
196 cc::SurfaceId surface_id_; 192 cc::SurfaceId surface_id_;
(...skipping 19 matching lines...) Expand all
216 212
217 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; 213 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_;
218 214
219 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); 215 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor);
220 }; 216 };
221 217
222 } // namespace client 218 } // namespace client
223 } // namespace blimp 219 } // namespace blimp
224 220
225 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 221 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/core/compositor/blimp_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698