video_renderer_mac.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef TEST_MAC_VIDEO_RENDERER_MAC_H_
  11. #define TEST_MAC_VIDEO_RENDERER_MAC_H_
  12. #include "rtc_base/constructor_magic.h"
  13. #include "test/gl/gl_renderer.h"
  14. @class CocoaWindow;
  15. namespace webrtc {
  16. namespace test {
  17. class MacRenderer : public GlRenderer {
  18. public:
  19. MacRenderer();
  20. virtual ~MacRenderer();
  21. bool Init(const char* window_title, int width, int height);
  22. // Implements GlRenderer.
  23. void OnFrame(const VideoFrame& frame) override;
  24. private:
  25. CocoaWindow* window_;
  26. RTC_DISALLOW_COPY_AND_ASSIGN(MacRenderer);
  27. };
  28. } // namespace test
  29. } // namespace webrtc
  30. #endif // TEST_MAC_VIDEO_RENDERER_MAC_H_