Chromium Code Reviews| Index: webrtc/media/base/videoframefactory.h |
| diff --git a/webrtc/media/base/videoframefactory.h b/webrtc/media/base/videoframefactory.h |
| index 6aa2ce51733b0c01ea8d5187ace63865a2d32571..d1cc28d3d7c578f612c2364262aab6a6de7d4a90 100644 |
| --- a/webrtc/media/base/videoframefactory.h |
| +++ b/webrtc/media/base/videoframefactory.h |
| @@ -24,7 +24,7 @@ class VideoFrame; |
| // depending on the subclass of VideoFrameFactory. |
| class VideoFrameFactory { |
| public: |
| - VideoFrameFactory() : apply_rotation_(false) {} |
| + VideoFrameFactory() : apply_rotation_(false), timestamp_offset_us_(0) {} |
| virtual ~VideoFrameFactory() {} |
| // The returned frame aliases the aliased_frame if the input color |
| @@ -47,9 +47,11 @@ class VideoFrameFactory { |
| int output_height) const; |
| void SetApplyRotation(bool enable) { apply_rotation_ = enable; } |
| + void SetTimestampOffset(int64_t offset) { timestamp_offset_us_ = offset; } |
| protected: |
| bool apply_rotation_; |
| + int64_t timestamp_offset_us_; |
|
pthatcher1
2016/05/27 22:47:44
This could use a comment about what effect is has
nisse-webrtc
2016/05/30 08:57:30
Done.
|
| private: |
| // An internal frame buffer to avoid reallocations. It is mutable because it |