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

Unified Diff: media/filters/test_video_frame_scheduler.h

Issue 1111993002: Remove VideoFrameScheduler and dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « media/filters/clockless_video_frame_scheduler.cc ('k') | media/filters/test_video_frame_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/test_video_frame_scheduler.h
diff --git a/media/filters/test_video_frame_scheduler.h b/media/filters/test_video_frame_scheduler.h
deleted file mode 100644
index 9ed082e69ec05a38675c154cde314bd0b18618ca..0000000000000000000000000000000000000000
--- a/media/filters/test_video_frame_scheduler.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_FILTERS_TEST_VIDEO_FRAME_SCHEDULER_H_
-#define MEDIA_FILTERS_TEST_VIDEO_FRAME_SCHEDULER_H_
-
-#include <vector>
-
-#include "media/filters/video_frame_scheduler.h"
-
-namespace media {
-
-// A scheduler that queues frames until told otherwise.
-class TestVideoFrameScheduler : public VideoFrameScheduler {
- public:
- struct ScheduledFrame {
- ScheduledFrame(const scoped_refptr<VideoFrame> frame,
- base::TimeTicks wall_ticks,
- const DoneCB& done_cb);
- ~ScheduledFrame();
-
- scoped_refptr<VideoFrame> frame;
- base::TimeTicks wall_ticks;
- DoneCB done_cb;
- };
-
- TestVideoFrameScheduler();
- ~TestVideoFrameScheduler() override;
-
- // VideoFrameScheduler implementation.
- void ScheduleVideoFrame(const scoped_refptr<VideoFrame>& frame,
- base::TimeTicks wall_ticks,
- const DoneCB& done_cb) override;
- void Reset() override;
-
- // Displays all frames with scheduled times <= |wall_ticks|.
- void DisplayFramesUpTo(base::TimeTicks wall_ticks);
-
- // Drops all frames with scheduled times <= |wall_ticks|.
- void DropFramesUpTo(base::TimeTicks wall_ticks);
-
- const std::vector<ScheduledFrame>& scheduled_frames() const {
- return scheduled_frames_;
- }
-
- private:
- void RunDoneCBForFramesUpTo(base::TimeTicks wall_ticks, Reason reason);
-
- std::vector<ScheduledFrame> scheduled_frames_;
-
- DISALLOW_COPY_AND_ASSIGN(TestVideoFrameScheduler);
-};
-
-} // namespace media
-
-#endif // MEDIA_FILTERS_TEST_VIDEO_FRAME_SCHEDULER_H_
« no previous file with comments | « media/filters/clockless_video_frame_scheduler.cc ('k') | media/filters/test_video_frame_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698