blob: 7baf7947445fbcf33531c682055466e8f05295de [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
Peter Boström7623ce42015-12-09 12:13:30 +010011#ifndef WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_
12#define WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +000013
henrike@webrtc.org88fbb2d2014-05-21 21:18:46 +000014#include "webrtc/base/constructormagic.h"
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000015#include "webrtc/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.
Miguel Casas-Sanchez47650702015-05-29 17:21:40 -070030 void RenderFrame(const VideoFrame& frame, int delta) override;
kjellander@webrtc.org14665ff2015-03-04 12:58:35 +000031 bool IsTextureSupported() const override { return false; }
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +000032
33 private:
34 CocoaWindow* window_;
35
henrikg3c089d72015-09-16 05:37:44 -070036 RTC_DISALLOW_COPY_AND_ASSIGN(MacRenderer);
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +000037};
38} // test
39} // webrtc
40
Peter Boström7623ce42015-12-09 12:13:30 +010041#endif // WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_