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

Unified Diff: media/filters/video_frame_scheduler_impl.h

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: Created 6 years, 2 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
Index: media/filters/video_frame_scheduler_impl.h
diff --git a/media/filters/video_frame_scheduler_impl.h b/media/filters/video_frame_scheduler_impl.h
index e2c0a9d43c8e7949e678284536856951a9337572..754ccf54455e8b77f8ee4835b54119b49b7eb07c 100644
--- a/media/filters/video_frame_scheduler_impl.h
+++ b/media/filters/video_frame_scheduler_impl.h
@@ -39,7 +39,7 @@ class MEDIA_EXPORT VideoFrameSchedulerImpl : public VideoFrameScheduler {
const DoneCB& done_cb) override;
virtual void Reset() override;
- void SetTickClockForTesting(scoped_ptr<base::TickClock> tick_clock);
+ void SetTickClockForTesting(scoped_refptr<base::TickClock> tick_clock);
private:
void ResetTimerIfNecessary();
@@ -47,7 +47,7 @@ class MEDIA_EXPORT VideoFrameSchedulerImpl : public VideoFrameScheduler {
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
DisplayCB display_cb_;
- scoped_ptr<base::TickClock> tick_clock_;
+ scoped_refptr<base::TickClock> tick_clock_;
base::OneShotTimer<VideoFrameScheduler> timer_;
struct PendingFrame {

Powered by Google App Engine
This is Rietveld 408576698