Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc

Issue 2988153003: Replace CHECK(x && y) with two separate CHECK() calls (Closed)
Patch Set: fix mistakes Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
index 90d8e896f1b0b17f59f0c800a52a116ab0fe3aa0..66e5e75812aa66a30ce38446f95cbb9ba3309c84 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
@@ -29,7 +29,8 @@ DxgiTextureMapping::~DxgiTextureMapping() = default;
bool DxgiTextureMapping::CopyFromTexture(
const DXGI_OUTDUPL_FRAME_INFO& frame_info,
ID3D11Texture2D* texture) {
- RTC_DCHECK(texture && frame_info.AccumulatedFrames > 0);
+ RTC_DCHECK_GT(frame_info.AccumulatedFrames, 0);
+ RTC_DCHECK(texture);
*rect() = {0};
_com_error error = duplication_->MapDesktopSurface(rect());
if (error.Error() != S_OK) {
« no previous file with comments | « webrtc/modules/desktop_capture/win/dxgi_texture.cc ('k') | webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698