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

Unified Diff: media/filters/video_frame_scheduler_proxy.cc

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/video_frame_scheduler_proxy.h ('k') | media/filters/video_frame_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_scheduler_proxy.cc
diff --git a/media/filters/video_frame_scheduler_proxy.cc b/media/filters/video_frame_scheduler_proxy.cc
deleted file mode 100644
index 590412e6dca06bda89ce10a047adccb3f548305e..0000000000000000000000000000000000000000
--- a/media/filters/video_frame_scheduler_proxy.cc
+++ /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.
-
-#include "media/filters/video_frame_scheduler_proxy.h"
-
-#include "base/single_thread_task_runner.h"
-#include "media/base/bind_to_current_loop.h"
-#include "media/base/video_frame.h"
-
-namespace media {
-
-VideoFrameSchedulerProxy::VideoFrameSchedulerProxy(
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
- const scoped_refptr<base::SingleThreadTaskRunner>& scheduler_runner,
- scoped_ptr<VideoFrameScheduler> scheduler)
- : task_runner_(task_runner),
- scheduler_runner_(scheduler_runner),
- scheduler_(scheduler.Pass()),
- weak_factory_(this) {
-}
-
-VideoFrameSchedulerProxy::~VideoFrameSchedulerProxy() {
- scheduler_runner_->DeleteSoon(FROM_HERE, scheduler_.release());
-}
-
-void VideoFrameSchedulerProxy::ScheduleVideoFrame(
- const scoped_refptr<VideoFrame>& frame,
- base::TimeTicks wall_ticks,
- const DoneCB& done_cb) {
- DCHECK(task_runner_->BelongsToCurrentThread());
- scheduler_runner_->PostTask(
- FROM_HERE,
- base::Bind(&VideoFrameScheduler::ScheduleVideoFrame,
- base::Unretained(scheduler_.get()),
- frame,
- wall_ticks,
- BindToCurrentLoop(done_cb)));
-}
-
-void VideoFrameSchedulerProxy::Reset() {
- DCHECK(task_runner_->BelongsToCurrentThread());
- scheduler_runner_->PostTask(FROM_HERE,
- base::Bind(&VideoFrameScheduler::Reset,
- base::Unretained(scheduler_.get())));
-}
-
-} // namespace media
« no previous file with comments | « media/filters/video_frame_scheduler_proxy.h ('k') | media/filters/video_frame_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698