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

Unified Diff: content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc

Issue 2795663002: Change VideoFrameReceiverOnIOThread to VideoFrameReceiverOnTaskRunner (Closed)
Patch Set: Rebase Created 3 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 | « content/browser/renderer_host/media/video_frame_receiver_on_io_thread.h ('k') | media/capture/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc
diff --git a/content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc b/content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc
deleted file mode 100644
index b7421e6b90f25ffaf3d1ca6897840e9e44babd0e..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/media/video_frame_receiver_on_io_thread.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2016 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 "content/browser/renderer_host/media/video_frame_receiver_on_io_thread.h"
-
-#include "content/public/browser/browser_thread.h"
-
-namespace content {
-
-VideoFrameReceiverOnIOThread::VideoFrameReceiverOnIOThread(
- const base::WeakPtr<VideoFrameReceiver>& receiver)
- : receiver_(receiver) {}
-
-VideoFrameReceiverOnIOThread::~VideoFrameReceiverOnIOThread() = default;
-
-void VideoFrameReceiverOnIOThread::OnNewBufferHandle(
- int buffer_id,
- std::unique_ptr<media::VideoCaptureDevice::Client::Buffer::HandleProvider>
- handle_provider) {
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&VideoFrameReceiver::OnNewBufferHandle, receiver_, buffer_id,
- base::Passed(std::move(handle_provider))));
-}
-
-void VideoFrameReceiverOnIOThread::OnFrameReadyInBuffer(
- int buffer_id,
- int frame_feedback_id,
- std::unique_ptr<
- media::VideoCaptureDevice::Client::Buffer::ScopedAccessPermission>
- buffer_read_permission,
- media::mojom::VideoFrameInfoPtr frame_info) {
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&VideoFrameReceiver::OnFrameReadyInBuffer, receiver_,
- buffer_id, frame_feedback_id,
- base::Passed(&buffer_read_permission),
- base::Passed(&frame_info)));
-}
-
-void VideoFrameReceiverOnIOThread::OnBufferRetired(int buffer_id) {
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&VideoFrameReceiver::OnBufferRetired, receiver_, buffer_id));
-}
-
-void VideoFrameReceiverOnIOThread::OnError() {
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&VideoFrameReceiver::OnError, receiver_));
-}
-
-void VideoFrameReceiverOnIOThread::OnLog(const std::string& message) {
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&VideoFrameReceiver::OnLog, receiver_, message));
-}
-
-void VideoFrameReceiverOnIOThread::OnStarted() {
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&VideoFrameReceiver::OnStarted, receiver_));
-}
-
-void VideoFrameReceiverOnIOThread::OnStartedUsingGpuDecode() {
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&VideoFrameReceiver::OnStartedUsingGpuDecode, receiver_));
-}
-
-} // namespace content
« no previous file with comments | « content/browser/renderer_host/media/video_frame_receiver_on_io_thread.h ('k') | media/capture/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698