Index: webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc |
diff --git a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc |
index c02fc91fa276cff539392fdf1cfa73b1f0442bc0..fb8dacb720a34b55f051e999463c8f2091d27f5b 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc |
+++ b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc |
@@ -67,7 +67,7 @@ |
desktop_rect_(RECTToDesktopRect(desc.DesktopCoordinates)) { |
RTC_DCHECK(output_); |
RTC_DCHECK(!desktop_rect_.is_empty()); |
- RTC_DCHECK(desktop_rect_.width() > 0 && desktop_rect_.height() > 0); |
+ RTC_DCHECK(desktop_rect_.left() >= 0 && desktop_rect_.top() >= 0); |
} |
DxgiOutputDuplicator::DxgiOutputDuplicator(DxgiOutputDuplicator&& other) = |
@@ -381,9 +381,4 @@ |
return num_frames_captured_; |
} |
-void DxgiOutputDuplicator::TranslateRect(const DesktopVector& position) { |
- desktop_rect_.Translate(position); |
- RTC_DCHECK(desktop_rect_.left() >= 0 && desktop_rect_.top() >= 0); |
-} |
- |
} // namespace webrtc |