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

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

Issue 2402173002: cc: Get rid of PostSwapBuffersComplete. (Closed)
Patch Set: postswap: fix-blimp-unittest-post-swap-acks Created 4 years, 2 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 #include <vector> 9 #include <vector>
10 10
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Helper method to destroy the internal CC LayerTreeHost instance and all its 171 // Helper method to destroy the internal CC LayerTreeHost instance and all its
172 // associated state. 172 // associated state.
173 void DestroyLayerTreeHost(); 173 void DestroyLayerTreeHost();
174 174
175 // Updates |pending_commit_trackers_|, decrementing the count and, if 0, 175 // Updates |pending_commit_trackers_|, decrementing the count and, if 0,
176 // notifying the callback. If |flush| is true, flushes all entries regardless 176 // notifying the callback. If |flush| is true, flushes all entries regardless
177 // of the count. 177 // of the count.
178 void CheckPendingCommitCounts(bool flush); 178 void CheckPendingCommitCounts(bool flush);
179 179
180 // Acks a submitted CompositorFrame when it has been processed and another
181 // frame should be started.
182 void SubmitCompositorFrameAck();
183
180 BlimpCompositorClient* client_; 184 BlimpCompositorClient* client_;
181 185
182 BlimpCompositorDependencies* compositor_dependencies_; 186 BlimpCompositorDependencies* compositor_dependencies_;
183 187
184 cc::FrameSinkId frame_sink_id_; 188 cc::FrameSinkId frame_sink_id_;
185 189
186 std::unique_ptr<cc::LayerTreeHost> host_; 190 std::unique_ptr<cc::LayerTreeHost> host_;
187 191
188 // The SurfaceFactory is bound to the lifetime of the |proxy_client_|. When 192 // The SurfaceFactory is bound to the lifetime of the |proxy_client_|. When
189 // detached, the surface factory will be destroyed. 193 // detached, the surface factory will be destroyed.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 232
229 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; 233 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_;
230 234
231 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); 235 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor);
232 }; 236 };
233 237
234 } // namespace client 238 } // namespace client
235 } // namespace blimp 239 } // namespace blimp
236 240
237 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 241 #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