This source file includes following definitions.
- client_
- SetVideoFrameProviderClient
- GetCurrentFrame
#include "cc/test/fake_video_frame_provider.h"
namespace cc {
FakeVideoFrameProvider::FakeVideoFrameProvider()
: frame_(NULL), client_(NULL) {}
FakeVideoFrameProvider::~FakeVideoFrameProvider() {
if (client_)
client_->StopUsingProvider();
}
void FakeVideoFrameProvider::SetVideoFrameProviderClient(Client* client) {
client_ = client;
}
scoped_refptr<media::VideoFrame> FakeVideoFrameProvider::GetCurrentFrame() {
return frame_;
}
}