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

Unified Diff: media/filters/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/test_video_frame_scheduler.cc ('k') | media/filters/video_frame_scheduler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_scheduler.h
diff --git a/media/filters/video_frame_scheduler.h b/media/filters/video_frame_scheduler.h
deleted file mode 100644
index f90726211cd44d7c52a515daf7a39c151f8d2973..0000000000000000000000000000000000000000
--- a/media/filters/video_frame_scheduler.h
+++ /dev/null
@@ -1,48 +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_VIDEO_FRAME_SCHEDULER_H_
-#define MEDIA_FILTERS_VIDEO_FRAME_SCHEDULER_H_
-
-#include "base/callback.h"
-#include "base/memory/ref_counted.h"
-#include "base/time/time.h"
-#include "media/base/media_export.h"
-
-namespace media {
-
-class VideoFrame;
-
-// Defines an abstract video frame scheduler that is capable of managing the
-// display of video frames at explicit times.
-class MEDIA_EXPORT VideoFrameScheduler {
- public:
- VideoFrameScheduler() {}
- virtual ~VideoFrameScheduler() {}
-
- enum Reason {
- DISPLAYED, // Frame was displayed.
- DROPPED, // Frame was dropped.
- };
- typedef base::Callback<void(const scoped_refptr<VideoFrame>&, Reason)> DoneCB;
-
- // Schedule |frame| to be displayed at |wall_ticks|, firing |done_cb| when
- // the scheduler has finished with the frame.
- //
- // To avoid reentrancy issues, |done_cb| is run on a separate calling stack.
- virtual void ScheduleVideoFrame(const scoped_refptr<VideoFrame>& frame,
- base::TimeTicks wall_ticks,
- const DoneCB& done_cb) = 0;
-
- // Causes the scheduler to cancel any previously scheduled frames.
- //
- // There is no guarantee that |done_cb|'s for previously scheduled frames
- // will not be run. Clients should implement callback tracking/cancellation
- // if they are sensitive to old callbacks being run.
- virtual void Reset() = 0;
-};
-
-} // namespace media
-
-#endif // MEDIA_FILTERS_VIDEO_FRAME_SCHEDULER_H_
« no previous file with comments | « media/filters/test_video_frame_scheduler.cc ('k') | media/filters/video_frame_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698