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

Side by Side Diff: cc/delay_based_time_source.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/debug_border_draw_quad.h ('k') | cc/delegated_renderer_layer.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 CCDelayBasedTimeSource_h 5 #ifndef CCDelayBasedTimeSource_h
6 #define CCDelayBasedTimeSource_h 6 #define CCDelayBasedTimeSource_h
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "cc/cc_export.h"
9 #include "cc/time_source.h" 10 #include "cc/time_source.h"
10 11
11 namespace cc { 12 namespace cc {
12 13
13 // This timer implements a time source that achieves the specified interval 14 // This timer implements a time source that achieves the specified interval
14 // in face of millisecond-precision delayed callbacks and random queueing delays . 15 // in face of millisecond-precision delayed callbacks and random queueing delays .
15 class DelayBasedTimeSource : public TimeSource { 16 class CC_EXPORT DelayBasedTimeSource : public TimeSource {
16 public: 17 public:
17 static scoped_refptr<DelayBasedTimeSource> create(base::TimeDelta interval, Thread* thread); 18 static scoped_refptr<DelayBasedTimeSource> create(base::TimeDelta interval, Thread* thread);
18 19
19 virtual void setClient(TimeSourceClient* client) OVERRIDE; 20 virtual void setClient(TimeSourceClient* client) OVERRIDE;
20 21
21 // TimeSource implementation 22 // TimeSource implementation
22 virtual void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelt a interval) OVERRIDE; 23 virtual void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelt a interval) OVERRIDE;
23 24
24 virtual void setActive(bool) OVERRIDE; 25 virtual void setActive(bool) OVERRIDE;
25 virtual bool active() const OVERRIDE; 26 virtual bool active() const OVERRIDE;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 State m_state; 70 State m_state;
70 71
71 Thread* m_thread; 72 Thread* m_thread;
72 base::WeakPtrFactory<DelayBasedTimeSource> m_weakFactory; 73 base::WeakPtrFactory<DelayBasedTimeSource> m_weakFactory;
73 DISALLOW_COPY_AND_ASSIGN(DelayBasedTimeSource); 74 DISALLOW_COPY_AND_ASSIGN(DelayBasedTimeSource);
74 }; 75 };
75 76
76 } // namespace cc 77 } // namespace cc
77 78
78 #endif // CCDelayBasedTimeSource_h 79 #endif // CCDelayBasedTimeSource_h
OLDNEW
« no previous file with comments | « cc/debug_border_draw_quad.h ('k') | cc/delegated_renderer_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698