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 21453b28ef5fd3999c9e3fffd3d4153b2a24d4d9..acb9c9df0fd3cc2c4561fcffb833429f2b2c50b0 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc |
+++ b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc |
@@ -69,7 +69,8 @@ DxgiOutputDuplicator::DxgiOutputDuplicator(const D3dDevice& device, |
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_GT(desktop_rect_.width(), 0); |
+ RTC_DCHECK_GT(desktop_rect_.height(), 0); |
} |
DxgiOutputDuplicator::DxgiOutputDuplicator(DxgiOutputDuplicator&& other) = |
@@ -385,7 +386,8 @@ int64_t DxgiOutputDuplicator::num_frames_captured() const { |
void DxgiOutputDuplicator::TranslateRect(const DesktopVector& position) { |
desktop_rect_.Translate(position); |
- RTC_DCHECK(desktop_rect_.left() >= 0 && desktop_rect_.top() >= 0); |
+ RTC_DCHECK_GE(desktop_rect_.left(), 0); |
+ RTC_DCHECK_GE(desktop_rect_.top(), 0); |
} |
} // namespace webrtc |