blob: 19349c037aca8f911c5ccb3f165dcb016db76f6a [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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef TEST_MAC_VIDEO_RENDERER_MAC_H_
12#define TEST_MAC_VIDEO_RENDERER_MAC_H_
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +000013
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020014#include "rtc_base/constructormagic.h"
15#include "test/gl/gl_renderer.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.
nisseeb83a1a2016-03-21 01:27:56 -070030 void OnFrame(const VideoFrame& frame) override;
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +000031
32 private:
33 CocoaWindow* window_;
34
henrikg3c089d72015-09-16 05:37:44 -070035 RTC_DISALLOW_COPY_AND_ASSIGN(MacRenderer);
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +000036};
37} // test
38} // webrtc
39
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020040#endif // TEST_MAC_VIDEO_RENDERER_MAC_H_