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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/objcvideotracksource.h

Issue 2812533003: ObjC: RTCVideoSource cleanup (Closed)
Patch Set: Remove deprecation comment in RTCPeerConnectionFactory Created 3 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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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_SDK_OBJC_FRAMEWORK_CLASSES_OBJCVIDEOTRACKSOURCE_H_ 11 #ifndef WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_OBJCVIDEOTRACKSOURCE_H_
12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_OBJCVIDEOTRACKSOURCE_H_ 12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_OBJCVIDEOTRACKSOURCE_H_
13 13
14 #import <WebRTC/RTCVideoFrame.h> 14 #include "WebRTC/RTCMacros.h"
15
16 #include "webrtc/base/timestampaligner.h" 15 #include "webrtc/base/timestampaligner.h"
17 #include "webrtc/media/base/adaptedvideotracksource.h" 16 #include "webrtc/media/base/adaptedvideotracksource.h"
18 17
18 RTC_FWD_DECL_OBJC_CLASS(RTCVideoFrame);
19
19 namespace webrtc { 20 namespace webrtc {
20 21
21 class ObjcVideoTrackSource : public rtc::AdaptedVideoTrackSource { 22 class ObjcVideoTrackSource : public rtc::AdaptedVideoTrackSource {
22 public: 23 public:
23 ObjcVideoTrackSource(); 24 ObjcVideoTrackSource();
24 25
25 // This class can not be used for implementing screen casting. Hopefully, this 26 // This class can not be used for implementing screen casting. Hopefully, this
26 // function will be removed before we add that to iOS/Mac. 27 // function will be removed before we add that to iOS/Mac.
27 bool is_screencast() const override { return false; } 28 bool is_screencast() const override { return false; }
28 29
(...skipping 13 matching lines...) Expand all
42 void OnOutputFormatRequest(int width, int height, int fps); 43 void OnOutputFormatRequest(int width, int height, int fps);
43 44
44 private: 45 private:
45 rtc::VideoBroadcaster broadcaster_; 46 rtc::VideoBroadcaster broadcaster_;
46 rtc::TimestampAligner timestamp_aligner_; 47 rtc::TimestampAligner timestamp_aligner_;
47 }; 48 };
48 49
49 } // namespace webrtc 50 } // namespace webrtc
50 51
51 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_OBJCVIDEOTRACKSOURCE_H_ 52 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_OBJCVIDEOTRACKSOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698