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

Side by Side Diff: cc/CCTimeSource.h

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/CCTiledLayerImplTest.cpp ('k') | cc/CCTimer.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CCTimeSource_h 5 #ifndef CCTimeSource_h
6 #define CCTimeSource_h 6 #define CCTimeSource_h
7 7
8 #include <wtf/RefCounted.h> 8 #include <wtf/RefCounted.h>
9 9
10 namespace WebCore { 10 namespace cc {
11 11
12 class CCThread; 12 class CCThread;
13 13
14 class CCTimeSourceClient { 14 class CCTimeSourceClient {
15 public: 15 public:
16 virtual void onTimerTick() = 0; 16 virtual void onTimerTick() = 0;
17 17
18 protected: 18 protected:
19 virtual ~CCTimeSourceClient() { } 19 virtual ~CCTimeSourceClient() { }
20 }; 20 };
21 21
22 // An generic interface for getting a reliably-ticking timesource of 22 // An generic interface for getting a reliably-ticking timesource of
23 // a specified rate. 23 // a specified rate.
24 // 24 //
25 // Be sure to call setActive(false) before releasing your reference to the 25 // Be sure to call setActive(false) before releasing your reference to the
26 // timer, or it will keep on ticking! 26 // timer, or it will keep on ticking!
27 class CCTimeSource : public RefCounted<CCTimeSource> { 27 class CCTimeSource : public RefCounted<CCTimeSource> {
28 public: 28 public:
29 virtual ~CCTimeSource() { } 29 virtual ~CCTimeSource() { }
30 virtual void setClient(CCTimeSourceClient*) = 0; 30 virtual void setClient(CCTimeSourceClient*) = 0;
31 virtual void setActive(bool) = 0; 31 virtual void setActive(bool) = 0;
32 virtual bool active() const = 0; 32 virtual bool active() const = 0;
33 virtual void setTimebaseAndInterval(double timebase, double intervalSeconds) = 0; 33 virtual void setTimebaseAndInterval(double timebase, double intervalSeconds) = 0;
34 virtual double lastTickTime() = 0; 34 virtual double lastTickTime() = 0;
35 virtual double nextTickTimeIfActivated() = 0; 35 virtual double nextTickTimeIfActivated() = 0;
36 }; 36 };
37 37
38 } 38 }
39 #endif // CCSmoothedTimer_h 39 #endif // CCSmoothedTimer_h
OLDNEW
« no previous file with comments | « cc/CCTiledLayerImplTest.cpp ('k') | cc/CCTimer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698