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

Side by Side Diff: webrtc/media/base/videoframefactory.h

Issue 2009193002: Delete IsMutable and IsExclusive methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Delete redundant RefCountedObject wrapping. Created 4 years, 6 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/media/base/videoframe.cc ('k') | webrtc/media/base/videoframefactory.cc » ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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_MEDIA_BASE_VIDEOFRAMEFACTORY_H_ 11 #ifndef WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
12 #define WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_ 12 #define WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/common_video/include/i420_buffer_pool.h"
16 #include "webrtc/media/base/videoframe.h" 17 #include "webrtc/media/base/videoframe.h"
17 18
18 namespace cricket { 19 namespace cricket {
19 20
20 struct CapturedFrame; 21 struct CapturedFrame;
21 class VideoFrame; 22 class VideoFrame;
22 23
23 // Creates cricket::VideoFrames, or a subclass of cricket::VideoFrame 24 // Creates cricket::VideoFrames, or a subclass of cricket::VideoFrame
24 // depending on the subclass of VideoFrameFactory. 25 // depending on the subclass of VideoFrameFactory.
25 class VideoFrameFactory { 26 class VideoFrameFactory {
(...skipping 19 matching lines...) Expand all
45 int cropped_input_height, 46 int cropped_input_height,
46 int output_width, 47 int output_width,
47 int output_height) const; 48 int output_height) const;
48 49
49 void SetApplyRotation(bool enable) { apply_rotation_ = enable; } 50 void SetApplyRotation(bool enable) { apply_rotation_ = enable; }
50 51
51 protected: 52 protected:
52 bool apply_rotation_; 53 bool apply_rotation_;
53 54
54 private: 55 private:
55 // An internal frame buffer to avoid reallocations. It is mutable because it 56 // An internal pool to avoid reallocations. It is mutable because it
56 // does not affect behaviour, only performance. 57 // does not affect behaviour, only performance.
57 mutable std::unique_ptr<VideoFrame> output_frame_; 58 mutable webrtc::I420BufferPool pool_;
58 }; 59 };
59 60
60 } // namespace cricket 61 } // namespace cricket
61 62
62 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_ 63 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/videoframe.cc ('k') | webrtc/media/base/videoframefactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698