blob: 7701840c031f4607258acc0ba65244eb130cbd4e [file] [log] [blame]
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +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
11#ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_MAC_VIDEO_RENDERER_MAC_H_
12#define WEBRTC_VIDEO_ENGINE_TEST_COMMON_MAC_VIDEO_RENDERER_MAC_H_
13
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000014#include "webrtc/test/gl/gl_renderer.h"
mcasas@webrtc.org2fa7f792014-05-21 11:07:29 +000015#include "webrtc/system_wrappers/interface/constructor_magic.h"
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +000016
17@class CocoaWindow;
18
19namespace webrtc {
20namespace test {
21
22class MacRenderer : public GlRenderer {
23 public:
24 MacRenderer();
25 virtual ~MacRenderer();
26
27 bool Init(const char* window_title, int width, int height);
28
29 // Implements GlRenderer.
30 virtual void RenderFrame(const I420VideoFrame& frame, int delta) OVERRIDE;
31
32 private:
33 CocoaWindow* window_;
34
35 DISALLOW_COPY_AND_ASSIGN(MacRenderer);
36};
37} // test
38} // webrtc
39
40#endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_MAC_VIDEO_RENDERER_MAC_H_