Roll src/buildtools ea47835:451dcd0
[chromium-blink-merge.git] / cc / test / fake_video_frame_provider.cc
blobf008d9fda4c35718933288e5a4f20f4e993df8f4
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "cc/test/fake_video_frame_provider.h"
7 namespace cc {
9 FakeVideoFrameProvider::FakeVideoFrameProvider()
10 : frame_(NULL), client_(NULL) {}
12 FakeVideoFrameProvider::~FakeVideoFrameProvider() {
13 if (client_)
14 client_->StopUsingProvider();
17 void FakeVideoFrameProvider::SetVideoFrameProviderClient(Client* client) {
18 client_ = client;
21 scoped_refptr<media::VideoFrame> FakeVideoFrameProvider::GetCurrentFrame() {
22 return frame_;
25 } // namespace cc