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

Unified Diff: cc/scheduler/begin_frame_source.h

Issue 1200113003: cc: Cleanup DelayBasedTimeSource code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_runner_refptr
Patch Set: mithro's review Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/scheduler/begin_frame_source.cc » ('j') | cc/scheduler/delay_based_time_source.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/begin_frame_source.h
diff --git a/cc/scheduler/begin_frame_source.h b/cc/scheduler/begin_frame_source.h
index 9eb3ea279daf7c6d04b656d06c25b87d65a94b50..82acfbead1a9364259d8f1dee8101d3d59e4d5d5 100644
--- a/cc/scheduler/begin_frame_source.h
+++ b/cc/scheduler/begin_frame_source.h
@@ -225,6 +225,7 @@ class CC_EXPORT SyntheticBeginFrameSource : public BeginFrameSourceBase,
protected:
explicit SyntheticBeginFrameSource(
+ base::SingleThreadTaskRunner* task_runner,
scoped_ptr<DelayBasedTimeSource> time_source);
BeginFrameArgs CreateBeginFrameArgs(base::TimeTicks frame_time,
@@ -233,9 +234,12 @@ class CC_EXPORT SyntheticBeginFrameSource : public BeginFrameSourceBase,
// BeginFrameSourceBase
void OnNeedsBeginFramesChange(bool needs_begin_frames) override;
+ base::SingleThreadTaskRunner* task_runner_;
scoped_ptr<DelayBasedTimeSource> time_source_;
private:
+ base::WeakPtrFactory<SyntheticBeginFrameSource> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(SyntheticBeginFrameSource);
};
« no previous file with comments | « no previous file | cc/scheduler/begin_frame_source.cc » ('j') | cc/scheduler/delay_based_time_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698