mflodman@webrtc.org | 7f944f3 | 2013-05-27 15:52:38 +0000 | [diff] [blame] | 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 | |
Peter Boström | 7623ce4 | 2015-12-09 12:13:30 +0100 | [diff] [blame] | 11 | #ifndef WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ |
| 12 | #define WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ |
mflodman@webrtc.org | 7f944f3 | 2013-05-27 15:52:38 +0000 | [diff] [blame] | 13 | |
Edward Lemur | c20978e | 2017-07-06 19:44:34 +0200 | [diff] [blame] | 14 | #include "webrtc/rtc_base/constructormagic.h" |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 15 | #include "webrtc/test/gl/gl_renderer.h" |
mflodman@webrtc.org | 7f944f3 | 2013-05-27 15:52:38 +0000 | [diff] [blame] | 16 | |
| 17 | @class CocoaWindow; |
| 18 | |
| 19 | namespace webrtc { |
| 20 | namespace test { |
| 21 | |
| 22 | class 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. |
nisse | eb83a1a | 2016-03-21 01:27:56 -0700 | [diff] [blame] | 30 | void OnFrame(const VideoFrame& frame) override; |
mflodman@webrtc.org | 7f944f3 | 2013-05-27 15:52:38 +0000 | [diff] [blame] | 31 | |
| 32 | private: |
| 33 | CocoaWindow* window_; |
| 34 | |
henrikg | 3c089d7 | 2015-09-16 05:37:44 -0700 | [diff] [blame] | 35 | RTC_DISALLOW_COPY_AND_ASSIGN(MacRenderer); |
mflodman@webrtc.org | 7f944f3 | 2013-05-27 15:52:38 +0000 | [diff] [blame] | 36 | }; |
| 37 | } // test |
| 38 | } // webrtc |
| 39 | |
Peter Boström | 7623ce4 | 2015-12-09 12:13:30 +0100 | [diff] [blame] | 40 | #endif // WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ |