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

Side by Side Diff: webrtc/media/engine/webrtcvideoframe.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/videoframefactory.cc ('k') | webrtc/media/engine/webrtcvideoframe.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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& video_frame_buffer() 71 const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& video_frame_buffer()
72 const override; 72 const override;
73 73
74 /* System monotonic clock */ 74 /* System monotonic clock */
75 int64_t timestamp_us() const override { return timestamp_us_; } 75 int64_t timestamp_us() const override { return timestamp_us_; }
76 void set_timestamp_us(int64_t time_us) override { timestamp_us_ = time_us; }; 76 void set_timestamp_us(int64_t time_us) override { timestamp_us_ = time_us; };
77 77
78 webrtc::VideoRotation rotation() const override { return rotation_; } 78 webrtc::VideoRotation rotation() const override { return rotation_; }
79 79
80 VideoFrame* Copy() const override; 80 VideoFrame* Copy() const override;
81 bool IsExclusive() const override; 81
82 size_t ConvertToRgbBuffer(uint32_t to_fourcc, 82 size_t ConvertToRgbBuffer(uint32_t to_fourcc,
83 uint8_t* buffer, 83 uint8_t* buffer,
84 size_t size, 84 size_t size,
85 int stride_rgb) const override; 85 int stride_rgb) const override;
86 86
87 const VideoFrame* GetCopyWithRotationApplied() const override; 87 const VideoFrame* GetCopyWithRotationApplied() const override;
88 88
89 protected: 89 protected:
90 void set_rotation(webrtc::VideoRotation rotation) override { 90 void set_rotation(webrtc::VideoRotation rotation) override {
91 rotation_ = rotation; 91 rotation_ = rotation;
(...skipping 24 matching lines...) Expand all
116 webrtc::VideoRotation rotation_; 116 webrtc::VideoRotation rotation_;
117 117
118 // This is mutable as the calculation is expensive but once calculated, it 118 // This is mutable as the calculation is expensive but once calculated, it
119 // remains const. 119 // remains const.
120 mutable std::unique_ptr<VideoFrame> rotated_frame_; 120 mutable std::unique_ptr<VideoFrame> rotated_frame_;
121 }; 121 };
122 122
123 } // namespace cricket 123 } // namespace cricket
124 124
125 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOFRAME_H_ 125 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOFRAME_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/videoframefactory.cc ('k') | webrtc/media/engine/webrtcvideoframe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698