blob: ef4168f47f9aae35f5ae6782055ffff428255caa [file] [log] [blame]
pbos@webrtc.orgdc8c8832013-05-16 12:08:03 +00001/*
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 */
10#ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_RENDERER_H_
11#define WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_RENDERER_H_
12
13#include "webrtc/video_engine/new_include/common.h"
14
15namespace webrtc {
16namespace test {
17
18class VideoRenderer : public newapi::VideoRenderer {
19 public:
mflodman@webrtc.org9bacbf42013-05-27 15:52:38 +000020 // Creates a platform-specific renderer if possible, or a null implementation
21 // if failing.
22 static VideoRenderer* Create(const char* window_title, size_t width,
pbos@webrtc.org3d6a8bf2013-05-23 12:20:16 +000023 size_t height);
mflodman@webrtc.org9bacbf42013-05-27 15:52:38 +000024 // Returns a renderer rendering to a platform specific window if possible,
25 // NULL if none can be created.
26 // Creates a platform-specific renderer if possible, returns NULL if a
27 // platform renderer could not be created. This occurs, for instance, when
28 // running without an X environment on Linux.
29 static VideoRenderer* CreatePlatformRenderer(const char* window_title,
30 size_t width, size_t height);
pbos@webrtc.orgdc8c8832013-05-16 12:08:03 +000031 virtual ~VideoRenderer() {}
pbos@webrtc.orgd9f91852013-05-23 12:37:11 +000032 protected:
33 VideoRenderer() {}
pbos@webrtc.orgdc8c8832013-05-16 12:08:03 +000034};
35} // test
36} // webrtc
37
38#endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_RENDERER_H_