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

Side by Side Diff: webrtc/test/video_capturer.h

Issue 3011943002: Move optional.h to webrtc/api/ (Closed)
Patch Set: Created 3 years, 3 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
« no previous file with comments | « webrtc/test/testsupport/fileutils_unittest.cc ('k') | webrtc/video/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WEBRTC_TEST_VIDEO_CAPTURER_H_ 10 #ifndef WEBRTC_TEST_VIDEO_CAPTURER_H_
11 #define WEBRTC_TEST_VIDEO_CAPTURER_H_ 11 #define WEBRTC_TEST_VIDEO_CAPTURER_H_
12 12
13 #include <stddef.h> 13 #include <stddef.h>
14 14
15 #include <memory> 15 #include <memory>
16 16
17 #include "webrtc/api/optional.h"
17 #include "webrtc/api/video/i420_buffer.h" 18 #include "webrtc/api/video/i420_buffer.h"
18 #include "webrtc/api/video/video_frame.h" 19 #include "webrtc/api/video/video_frame.h"
19 #include "webrtc/media/base/videoadapter.h" 20 #include "webrtc/media/base/videoadapter.h"
20 #include "webrtc/media/base/videosourceinterface.h" 21 #include "webrtc/media/base/videosourceinterface.h"
21 #include "webrtc/rtc_base/criticalsection.h" 22 #include "webrtc/rtc_base/criticalsection.h"
22 #include "webrtc/rtc_base/optional.h"
23 23
24 namespace cricket { 24 namespace cricket {
25 class VideoAdapter; 25 class VideoAdapter;
26 } // namespace cricket 26 } // namespace cricket
27 27
28 namespace webrtc { 28 namespace webrtc {
29 class Clock; 29 class Clock;
30 namespace test { 30 namespace test {
31 31
32 class VideoCapturer : public rtc::VideoSourceInterface<VideoFrame> { 32 class VideoCapturer : public rtc::VideoSourceInterface<VideoFrame> {
(...skipping 11 matching lines...) Expand all
44 rtc::Optional<VideoFrame> AdaptFrame(const VideoFrame& frame); 44 rtc::Optional<VideoFrame> AdaptFrame(const VideoFrame& frame);
45 rtc::VideoSinkWants GetSinkWants(); 45 rtc::VideoSinkWants GetSinkWants();
46 46
47 private: 47 private:
48 const std::unique_ptr<cricket::VideoAdapter> video_adapter_; 48 const std::unique_ptr<cricket::VideoAdapter> video_adapter_;
49 }; 49 };
50 } // namespace test 50 } // namespace test
51 } // namespace webrtc 51 } // namespace webrtc
52 52
53 #endif // WEBRTC_TEST_VIDEO_CAPTURER_H_ 53 #endif // WEBRTC_TEST_VIDEO_CAPTURER_H_
OLDNEW
« no previous file with comments | « webrtc/test/testsupport/fileutils_unittest.cc ('k') | webrtc/video/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698