OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ | 11 #ifndef WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ |
12 #define WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ | 12 #define WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ |
13 | 13 |
14 #include "webrtc/base/constructormagic.h" | 14 #include "webrtc/base/constructormagic.h" |
15 #include "webrtc/test/gl/gl_renderer.h" | 15 #include "webrtc/test/gl/gl_renderer.h" |
16 | 16 |
17 @class CocoaWindow; | 17 @class CocoaWindow; |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 namespace test { | 20 namespace test { |
21 | 21 |
22 class MacRenderer : public GlRenderer { | 22 class MacRenderer : public GlRenderer { |
23 public: | 23 public: |
24 MacRenderer(); | 24 MacRenderer(); |
25 virtual ~MacRenderer(); | 25 virtual ~MacRenderer(); |
26 | 26 |
27 bool Init(const char* window_title, int width, int height); | 27 bool Init(const char* window_title, int width, int height); |
28 | 28 |
29 // Implements GlRenderer. | 29 // Implements GlRenderer. |
30 void RenderFrame(const VideoFrame& frame, int delta) override; | 30 void OnFrame(const VideoFrame& frame) override; |
31 bool IsTextureSupported() const override { return false; } | |
32 | 31 |
33 private: | 32 private: |
34 CocoaWindow* window_; | 33 CocoaWindow* window_; |
35 | 34 |
36 RTC_DISALLOW_COPY_AND_ASSIGN(MacRenderer); | 35 RTC_DISALLOW_COPY_AND_ASSIGN(MacRenderer); |
37 }; | 36 }; |
38 } // test | 37 } // test |
39 } // webrtc | 38 } // webrtc |
40 | 39 |
41 #endif // WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ | 40 #endif // WEBRTC_TEST_MAC_VIDEO_RENDERER_MAC_H_ |
OLD | NEW |