#include "media/gpu/test/video_player/frame_renderer_dummy.h"
#include <algorithm>
#include <utility>
#include <vector>
#include "base/memory/ptr_util.h"
#include "media/gpu/macros.h"
#include "media/gpu/test/video_frame_helpers.h"
namespace media {
namespace test {
FrameRendererDummy::FrameRendererDummy(base::TimeDelta frame_duration,
base::TimeDelta vsync_interval_duration)
: … { … }
FrameRendererDummy::~FrameRendererDummy() { … }
std::unique_ptr<FrameRendererDummy> FrameRendererDummy::Create(
base::TimeDelta frame_duration,
base::TimeDelta vsync_interval_duration) { … }
bool FrameRendererDummy::Initialize() { … }
void FrameRendererDummy::Destroy() { … }
void FrameRendererDummy::RenderFrame(scoped_refptr<VideoFrame> video_frame) { … }
void FrameRendererDummy::WaitUntilRenderingDone() { … }
scoped_refptr<VideoFrame> FrameRendererDummy::CreateVideoFrame(
VideoPixelFormat pixel_format,
const gfx::Size& size,
uint32_t texture_target,
uint32_t* texture_id) { … }
uint64_t FrameRendererDummy::FramesDropped() const { … }
void FrameRendererDummy::InitializeTask(base::WaitableEvent* done) { … }
void FrameRendererDummy::DestroyTask(base::WaitableEvent* done) { … }
void FrameRendererDummy::RenderFrameTask() { … }
void FrameRendererDummy::ScheduleNextRenderFrameTask() { … }
}
}