xref: /aosp_15_r20/external/webrtc/test/mac/video_renderer_mac.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
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 
11 #ifndef TEST_MAC_VIDEO_RENDERER_MAC_H_
12 #define TEST_MAC_VIDEO_RENDERER_MAC_H_
13 
14 #include "test/gl/gl_renderer.h"
15 
16 @class CocoaWindow;
17 
18 namespace webrtc {
19 namespace test {
20 
21 class MacRenderer : public GlRenderer {
22  public:
23   MacRenderer();
24   virtual ~MacRenderer();
25 
26   MacRenderer(const MacRenderer&) = delete;
27   MacRenderer& operator=(const MacRenderer&) = delete;
28 
29   bool Init(const char* window_title, int width, int height);
30 
31   // Implements GlRenderer.
32   void OnFrame(const VideoFrame& frame) override;
33 
34  private:
35   CocoaWindow* window_;
36 };
37 }  // namespace test
38 }  // namespace webrtc
39 
40 #endif  // TEST_MAC_VIDEO_RENDERER_MAC_H_
41