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

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

Issue 429743003: Rename Animate as Begin(Main)Frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 6 years, 4 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
« no previous file with comments | « mojo/examples/compositor_app/compositor_host.cc ('k') | ui/compositor/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 (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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Signals swap has completed. 221 // Signals swap has completed.
222 void OnSwapBuffersComplete(); 222 void OnSwapBuffersComplete();
223 223
224 // Signals swap has aborted (e.g. lost context). 224 // Signals swap has aborted (e.g. lost context).
225 void OnSwapBuffersAborted(); 225 void OnSwapBuffersAborted();
226 226
227 // LayerTreeHostClient implementation. 227 // LayerTreeHostClient implementation.
228 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 228 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
229 virtual void DidBeginMainFrame() OVERRIDE {} 229 virtual void DidBeginMainFrame() OVERRIDE {}
230 virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE; 230 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE;
231 virtual void Layout() OVERRIDE; 231 virtual void Layout() OVERRIDE;
232 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, 232 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
233 float page_scale) OVERRIDE {} 233 float page_scale) OVERRIDE {}
234 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 234 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
235 OVERRIDE; 235 OVERRIDE;
236 virtual void DidInitializeOutputSurface() OVERRIDE {} 236 virtual void DidInitializeOutputSurface() OVERRIDE {}
237 virtual void WillCommit() OVERRIDE {} 237 virtual void WillCommit() OVERRIDE {}
238 virtual void DidCommit() OVERRIDE; 238 virtual void DidCommit() OVERRIDE;
239 virtual void DidCommitAndDrawFrame() OVERRIDE; 239 virtual void DidCommitAndDrawFrame() OVERRIDE;
240 virtual void DidCompleteSwapBuffers() OVERRIDE; 240 virtual void DidCompleteSwapBuffers() OVERRIDE;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 LayerAnimatorCollection layer_animator_collection_; 312 LayerAnimatorCollection layer_animator_collection_;
313 313
314 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 314 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
315 315
316 DISALLOW_COPY_AND_ASSIGN(Compositor); 316 DISALLOW_COPY_AND_ASSIGN(Compositor);
317 }; 317 };
318 318
319 } // namespace ui 319 } // namespace ui
320 320
321 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 321 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « mojo/examples/compositor_app/compositor_host.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698