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

Unified Diff: webrtc/media/base/videoframe.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, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_video/video_frame_buffer.cc ('k') | webrtc/media/base/videoframe.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videoframe.h
diff --git a/webrtc/media/base/videoframe.h b/webrtc/media/base/videoframe.h
index 950f88848f6cbfb0191199dcea433a87d7fb37d6..a8e3e4d1162ce775c62a7efa5eaac0f21e1262c6 100644
--- a/webrtc/media/base/videoframe.h
+++ b/webrtc/media/base/videoframe.h
@@ -56,10 +56,6 @@ class VideoFrame {
// frame buffer.
virtual VideoFrame *Copy() const = 0;
- // Since VideoFrame supports shallow copy and the internal frame buffer might
- // be shared, this function can be used to check exclusive ownership.
- virtual bool IsExclusive() const = 0;
-
// Return a copy of frame which has its pending rotation applied. The
// ownership of the returned frame is held by this frame.
virtual const VideoFrame* GetCopyWithRotationApplied() const = 0;
@@ -95,13 +91,6 @@ class VideoFrame {
virtual void StretchToFrame(VideoFrame *target, bool interpolate,
bool crop) const;
- // Stretches the frame to the given size, creating a new VideoFrame object to
- // hold it. The parameter "interpolate" controls whether to interpolate or
- // just take the nearest-point. The parameter "crop" controls whether to crop
- // this frame to the aspect ratio of the given dimensions before stretching.
- virtual VideoFrame *Stretch(size_t w, size_t h, bool interpolate,
- bool crop) const;
-
// Sets the video frame to black.
virtual bool SetToBlack();
@@ -128,6 +117,7 @@ class VideoFrame {
virtual VideoFrame* CreateEmptyFrame(int w,
int h,
int64_t timestamp_us) const = 0;
+
virtual void set_rotation(webrtc::VideoRotation rotation) = 0;
};
« no previous file with comments | « webrtc/common_video/video_frame_buffer.cc ('k') | webrtc/media/base/videoframe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698