From 837dde9f1d2851129a346c50e260962cd656a8db Mon Sep 17 00:00:00 2001 From: Sergey Ulanov Date: Tue, 17 May 2016 22:03:33 -0700 Subject: [PATCH] Remove DesktopFrame::shape(). Frame shape is no longer used and can be removed. R=jamiewalch@chromium.org Review URL: https://codereview.webrtc.org/1986963002 . Cr-Commit-Position: refs/heads/master@{#12783} --- webrtc/modules/desktop_capture/desktop_frame.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/webrtc/modules/desktop_capture/desktop_frame.h b/webrtc/modules/desktop_capture/desktop_frame.h index 7047db8fc1..53091239e4 100644 --- a/webrtc/modules/desktop_capture/desktop_frame.h +++ b/webrtc/modules/desktop_capture/desktop_frame.h @@ -56,11 +56,6 @@ class DesktopFrame { int64_t capture_time_ms() const { return capture_time_ms_; } void set_capture_time_ms(int64_t time_ms) { capture_time_ms_ = time_ms; } - // Optional shape for the frame. Frames may be shaped e.g. if - // capturing the contents of a shaped window. - const DesktopRegion* shape() const { return shape_.get(); } - void set_shape(DesktopRegion* shape) { shape_.reset(shape); } - // Copies pixels from a buffer or another frame. |dest_rect| rect must lay // within bounds of this frame. void CopyPixelsFrom(uint8_t* src_buffer, int src_stride, @@ -90,7 +85,6 @@ class DesktopFrame { DesktopRegion updated_region_; DesktopVector dpi_; int64_t capture_time_ms_; - std::unique_ptr shape_; private: RTC_DISALLOW_COPY_AND_ASSIGN(DesktopFrame);