Chromium Code Reviews| Index: webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc |
| diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc b/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc |
| index 48dc02748ba0bed42021106dd9b06c7ba747266e..f86e03ef31e4e93230d31b71cfacee3ba96b2b2f 100644 |
| --- a/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc |
| +++ b/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc |
| @@ -87,7 +87,8 @@ void DxgiTextureStaging::AssertStageAndSurfaceAreSameObject() { |
| bool DxgiTextureStaging::CopyFromTexture( |
| const DXGI_OUTDUPL_FRAME_INFO& frame_info, |
| ID3D11Texture2D* texture) { |
| - RTC_DCHECK(texture && frame_info.AccumulatedFrames > 0); |
| + RTC_DCHECK_GE(frame_info.AccumulatedFrames, 0); |
|
mflodman
2017/08/09 15:27:07
Should be RTC_DCHECK_GT.
kwiberg-webrtc
2017/08/09 22:06:07
Done.
|
| + RTC_DCHECK(texture); |
| // AcquireNextFrame returns a CPU inaccessible IDXGIResource, so we need to |
| // copy it to a CPU accessible staging ID3D11Texture2D. |