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

Side by Side Diff: ui/compositor/compositor.h

Issue 291843012: compositor: Tick the UI animations from cc, instead of from timer callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 // Signals swap has completed. 218 // Signals swap has completed.
219 void OnSwapBuffersComplete(); 219 void OnSwapBuffersComplete();
220 220
221 // Signals swap has aborted (e.g. lost context). 221 // Signals swap has aborted (e.g. lost context).
222 void OnSwapBuffersAborted(); 222 void OnSwapBuffersAborted();
223 223
224 // LayerTreeHostClient implementation. 224 // LayerTreeHostClient implementation.
225 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 225 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
226 virtual void DidBeginMainFrame() OVERRIDE {} 226 virtual void DidBeginMainFrame() OVERRIDE {}
227 virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE {} 227 virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE;
228 virtual void Layout() OVERRIDE; 228 virtual void Layout() OVERRIDE;
229 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, 229 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
230 float page_scale) OVERRIDE {} 230 float page_scale) OVERRIDE {}
231 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 231 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
232 OVERRIDE; 232 OVERRIDE;
233 virtual void DidInitializeOutputSurface() OVERRIDE {} 233 virtual void DidInitializeOutputSurface() OVERRIDE {}
234 virtual void WillCommit() OVERRIDE {} 234 virtual void WillCommit() OVERRIDE {}
235 virtual void DidCommit() OVERRIDE; 235 virtual void DidCommit() OVERRIDE;
236 virtual void DidCommitAndDrawFrame() OVERRIDE; 236 virtual void DidCommitAndDrawFrame() OVERRIDE;
237 virtual void DidCompleteSwapBuffers() OVERRIDE; 237 virtual void DidCompleteSwapBuffers() OVERRIDE;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 SwapState swap_state_; 306 SwapState swap_state_;
307 307
308 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 308 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
309 309
310 DISALLOW_COPY_AND_ASSIGN(Compositor); 310 DISALLOW_COPY_AND_ASSIGN(Compositor);
311 }; 311 };
312 312
313 } // namespace ui 313 } // namespace ui
314 314
315 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 315 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698