blob: 7f04683e81668d7be004f6740ebfdd70757b3b6a [file] [log] [blame]
pbos@webrtc.org29d58392013-05-16 12:08:031/*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
pbos@webrtc.org16e03b72013-10-28 16:32:0110#include "webrtc/test/video_renderer.h"
pbos@webrtc.org29d58392013-05-16 12:08:0311
pbos@webrtc.org29d58392013-05-16 12:08:0312// TODO(pbos): Android renderer
13
pbos@webrtc.org1ecee9a2013-05-29 11:34:3214#include "webrtc/typedefs.h"
15
pbos@webrtc.org29d58392013-05-16 12:08:0316namespace webrtc {
17namespace test {
18
19class NullRenderer : public VideoRenderer {
nisseeb83a1a2016-03-21 08:27:5620 void OnFrame(const VideoFrame& video_frame) override {}
pbos@webrtc.org29d58392013-05-16 12:08:0321};
22
pbos@webrtc.orgadf23a52013-07-10 14:07:5623VideoRenderer* VideoRenderer::Create(const char* window_title,
24 size_t width,
pbos@webrtc.org771cdcb2013-05-23 12:20:1625 size_t height) {
mflodman@webrtc.org7f944f32013-05-27 15:52:3826 VideoRenderer* renderer = CreatePlatformRenderer(window_title, width, height);
mflodman99768402016-08-03 13:38:0627 if (renderer != nullptr)
mflodman@webrtc.org7f944f32013-05-27 15:52:3828 return renderer;
pbos@webrtc.orgadf23a52013-07-10 14:07:5629
pbos@webrtc.org29d58392013-05-16 12:08:0330 return new NullRenderer();
31}
pbos@webrtc.orgadf23a52013-07-10 14:07:5632} // namespace test
33} // namespace webrtc