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

Unified Diff: media/filters/video_frame_scheduler_impl.cc

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: y 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.cc
diff --git a/media/filters/video_frame_scheduler_impl.cc b/media/filters/video_frame_scheduler_impl.cc
index ee06bb1cd96b7dbc70517ec061b2c1b572315f24..22551457f4925c0566b37172ac74a1274b3ea026 100644
--- a/media/filters/video_frame_scheduler_impl.cc
+++ b/media/filters/video_frame_scheduler_impl.cc
@@ -39,8 +39,8 @@ void VideoFrameSchedulerImpl::Reset() {
}
void VideoFrameSchedulerImpl::SetTickClockForTesting(
- scoped_ptr<base::TickClock> tick_clock) {
- tick_clock_.swap(tick_clock);
+ const scoped_refptr<base::TickClock>& tick_clock) {
+ tick_clock_ = tick_clock;
}
void VideoFrameSchedulerImpl::ResetTimerIfNecessary() {
« no previous file with comments | « media/filters/video_frame_scheduler_impl.h ('k') | ui/display/chromeos/x11/native_display_event_dispatcher_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698