Index: webrtc/modules/desktop_capture/desktop_frame.cc |
diff --git a/webrtc/modules/desktop_capture/desktop_frame.cc b/webrtc/modules/desktop_capture/desktop_frame.cc |
index 6bc7b2e38f646f85972926544cd0e35f29e21764..5a37a2ddca7ebdf76f50dc64a4261a7a0dbf3684 100644 |
--- a/webrtc/modules/desktop_capture/desktop_frame.cc |
+++ b/webrtc/modules/desktop_capture/desktop_frame.cc |
@@ -28,6 +28,54 @@ DesktopFrame::DesktopFrame(DesktopSize size, |
DesktopFrame::~DesktopFrame() {} |
+const DesktopSize& DesktopFrame::size() const { |
+ return size_; |
+} |
+ |
+int DesktopFrame::stride() const { |
+ return stride_; |
+} |
+ |
+uint8_t* DesktopFrame::data() const { |
+ return data_; |
+} |
+ |
+SharedMemory* DesktopFrame::shared_memory() const { |
+ return shared_memory_; |
+} |
+ |
+const DesktopRegion& DesktopFrame::updated_region() const { |
+ return updated_region_; |
+} |
+ |
+DesktopRegion* DesktopFrame::mutable_updated_region() { |
+ return &updated_region_; |
+} |
+ |
+const DesktopVector& DesktopFrame::dpi() const { |
+ return dpi_; |
+} |
+ |
+void DesktopFrame::set_dpi(const DesktopVector& dpi) { |
+ dpi_ = dpi; |
+} |
+ |
+int64_t DesktopFrame::capture_time_ms() const { |
+ return capture_time_ms_; |
+} |
+ |
+void DesktopFrame::set_capture_time_ms(int64_t time_ms) { |
+ capture_time_ms_ = time_ms; |
+} |
+ |
+const DesktopRegion* DesktopFrame::shape() const { |
+ return shape_.get(); |
+} |
+ |
+void DesktopFrame::set_shape(DesktopRegion* shape) { |
+ shape_.reset(shape); |
+} |
+ |
void DesktopFrame::CopyPixelsFrom(uint8_t* src_buffer, int src_stride, |
const DesktopRect& dest_rect) { |
assert(DesktopRect::MakeSize(size()).ContainsRect(dest_rect)); |