1 /* 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 #include "webrtc/test/video_renderer.h" 11 12 // TODO(pbos): Android renderer 13 14 #include "webrtc/typedefs.h" 15 16 namespace webrtc { 17 namespace test { 18 19 class NullRenderer : public VideoRenderer { 20 virtual void RenderFrame(const I420VideoFrame& video_frame, 21 int time_to_render_ms) OVERRIDE {} 22 }; 23 24 VideoRenderer* VideoRenderer::Create(const char* window_title, 25 size_t width, 26 size_t height) { 27 VideoRenderer* renderer = CreatePlatformRenderer(window_title, width, height); 28 if (renderer != NULL) { 29 // TODO(mflodman) Add a warning log. 30 return renderer; 31 } 32 33 return new NullRenderer(); 34 } 35 } // namespace test 36 } // namespace webrtc 37