Index: webrtc/test/win/d3d_renderer.cc |
diff --git a/webrtc/test/win/d3d_renderer.cc b/webrtc/test/win/d3d_renderer.cc |
index e09b32d28e010cebc049c4803f5c7ff691e67352..7c344ba0b3b0d165864e5d1c1c139884a06b4791 100644 |
--- a/webrtc/test/win/d3d_renderer.cc |
+++ b/webrtc/test/win/d3d_renderer.cc |
@@ -9,6 +9,7 @@ |
*/ |
#include "webrtc/test/win/d3d_renderer.h" |
+#include "webrtc/base/checks.h" |
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
namespace webrtc { |
@@ -37,8 +38,8 @@ D3dRenderer::D3dRenderer(size_t width, size_t height) |
d3d_device_(NULL), |
texture_(NULL), |
vertex_buffer_(NULL) { |
- assert(width > 0); |
- assert(height > 0); |
+ RTC_DCHECK_GT(width, 0); |
+ RTC_DCHECK_GT(height, 0); |
} |
D3dRenderer::~D3dRenderer() { Destroy(); } |
@@ -61,7 +62,7 @@ void D3dRenderer::Destroy() { |
if (hwnd_ != NULL) { |
DestroyWindow(hwnd_); |
- assert(!IsWindow(hwnd_)); |
+ RTC_DCHECK(!IsWindow(hwnd_)); |
hwnd_ = NULL; |
} |
} |