#include "media/gpu/chromeos/image_processor_with_pool.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/task/sequenced_task_runner.h"
#include "media/base/media_serializers.h"
#include "media/gpu/chromeos/frame_resource.h"
#include "media/gpu/chromeos/gpu_buffer_layout.h"
#include "media/gpu/macros.h"
namespace media {
CroStatus::Or<std::unique_ptr<ImageProcessorWithPool>>
ImageProcessorWithPool::Create(
std::unique_ptr<ImageProcessor> image_processor,
DmabufVideoFramePool* const frame_pool,
size_t num_frames,
bool use_protected,
const scoped_refptr<base::SequencedTaskRunner> task_runner) { … }
ImageProcessorWithPool::ImageProcessorWithPool(
std::unique_ptr<ImageProcessor> image_processor,
DmabufVideoFramePool* const frame_pool,
const scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
ImageProcessorWithPool::~ImageProcessorWithPool() { … }
void ImageProcessorWithPool::Reset() { … }
bool ImageProcessorWithPool::HasPendingFrames() const { … }
void ImageProcessorWithPool::Process(scoped_refptr<FrameResource> frame,
FrameResourceReadyCB ready_cb) { … }
void ImageProcessorWithPool::PumpProcessFrames() { … }
void ImageProcessorWithPool::OnFrameProcessed(
FrameResourceReadyCB ready_cb,
scoped_refptr<FrameResource> frame) { … }
}