Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: webrtc/modules/video_render/ios/video_render_ios_channel.h

Issue 1813173002: Deletes the class VideoRendererCallback. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Break long lines. Add explicit keyword on IncomingVideoStream constructor. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MODULES_VIDEO_RENDER_IOS_VIDEO_RENDER_IOS_CHANNEL_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_RENDER_IOS_VIDEO_RENDER_IOS_CHANNEL_H_
12 #define WEBRTC_MODULES_VIDEO_RENDER_IOS_VIDEO_RENDER_IOS_CHANNEL_H_ 12 #define WEBRTC_MODULES_VIDEO_RENDER_IOS_VIDEO_RENDER_IOS_CHANNEL_H_
13 13
14 #include "webrtc/modules/video_render/video_render_defines.h" 14 #include "webrtc/modules/video_render/video_render_defines.h"
15 #include "webrtc/modules/video_render/ios/video_render_ios_view.h" 15 #include "webrtc/modules/video_render/ios/video_render_ios_view.h"
16 16
17 namespace webrtc { 17 namespace webrtc {
18 18
19 class VideoRenderIosGles20; 19 class VideoRenderIosGles20;
20 20
21 class VideoRenderIosChannel : public VideoRenderCallback { 21 class VideoRenderIosChannel : public rtc::VideoSinkInterface<VideoFrame> {
22 public: 22 public:
23 explicit VideoRenderIosChannel(VideoRenderIosView* view); 23 explicit VideoRenderIosChannel(VideoRenderIosView* view);
24 virtual ~VideoRenderIosChannel(); 24 virtual ~VideoRenderIosChannel();
25 25
26 // Implementation of VideoRenderCallback. 26 // Implementation of rtc::VideoSinkInterface<VideoFrame>.
27 int32_t RenderFrame(const uint32_t stream_id, 27 void OnFrame(const VideoFrame& video_frame) override;
28 const VideoFrame& video_frame) override;
29 28
30 int SetStreamSettings(const float z_order, 29 int SetStreamSettings(const float z_order,
31 const float left, 30 const float left,
32 const float top, 31 const float top,
33 const float right, 32 const float right,
34 const float bottom); 33 const float bottom);
35 bool IsUpdated(); 34 bool IsUpdated();
36 bool RenderOffScreenBuffer(); 35 bool RenderOffScreenBuffer();
37 36
38 private: 37 private:
39 VideoRenderIosView* view_; 38 VideoRenderIosView* view_;
40 VideoFrame* current_frame_; 39 VideoFrame* current_frame_;
41 bool buffer_is_updated_; 40 bool buffer_is_updated_;
42 }; 41 };
43 42
44 } // namespace webrtc 43 } // namespace webrtc
45 #endif // WEBRTC_MODULES_VIDEO_RENDER_IOS_VIDEO_RENDER_IOS_CHANNEL_H_ 44 #endif // WEBRTC_MODULES_VIDEO_RENDER_IOS_VIDEO_RENDER_IOS_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698