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

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

Issue 138903025: Read compositor VSync information from platform, when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 287efe04 Rebase, oshima@ nits. Created 6 years, 10 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 | « ui/compositor/compositor.gyp ('k') | ui/compositor/compositor_vsync_manager.h » ('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_OBSERVER_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
6 #define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "ui/compositor/compositor_export.h" 9 #include "ui/compositor/compositor_export.h"
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 // Called when compositing completes: the present to screen has completed. 32 // Called when compositing completes: the present to screen has completed.
33 virtual void OnCompositingEnded(Compositor* compositor) = 0; 33 virtual void OnCompositingEnded(Compositor* compositor) = 0;
34 34
35 // Called when compositing is aborted (e.g. lost graphics context). 35 // Called when compositing is aborted (e.g. lost graphics context).
36 virtual void OnCompositingAborted(Compositor* compositor) = 0; 36 virtual void OnCompositingAborted(Compositor* compositor) = 0;
37 37
38 // Called when the compositor lock state changes. 38 // Called when the compositor lock state changes.
39 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0; 39 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0;
40 40
41 // Called when the compositor has received updated VSync parameters.
42 virtual void OnUpdateVSyncParameters(Compositor* compositor,
43 base::TimeTicks timebase,
44 base::TimeDelta interval) = 0;
45
46 protected: 41 protected:
47 virtual ~CompositorObserver() {} 42 virtual ~CompositorObserver() {}
48 }; 43 };
49 44
50 } // namespace ui 45 } // namespace ui
51 46
52 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ 47 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/compositor_vsync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698