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

Unified Diff: webrtc/common_audio/blocker.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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
« no previous file with comments | « webrtc/common_audio/audio_ring_buffer.cc ('k') | webrtc/common_audio/channel_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/blocker.cc
diff --git a/webrtc/common_audio/blocker.cc b/webrtc/common_audio/blocker.cc
index 359e881a4ba7313611d6219706c2d22a4ff227d8..0133550bebd8ccae60ba929bee30a570b24873b9 100644
--- a/webrtc/common_audio/blocker.cc
+++ b/webrtc/common_audio/blocker.cc
@@ -118,8 +118,8 @@ Blocker::Blocker(size_t chunk_size,
window_(new float[block_size_]),
shift_amount_(shift_amount),
callback_(callback) {
- CHECK_LE(num_output_channels_, num_input_channels_);
- CHECK_LE(shift_amount_, block_size_);
+ RTC_CHECK_LE(num_output_channels_, num_input_channels_);
+ RTC_CHECK_LE(shift_amount_, block_size_);
memcpy(window_.get(), window, block_size_ * sizeof(*window_.get()));
input_buffer_.MoveReadPositionBackward(initial_delay_);
@@ -169,9 +169,9 @@ void Blocker::ProcessChunk(const float* const* input,
int num_input_channels,
int num_output_channels,
float* const* output) {
- CHECK_EQ(chunk_size, chunk_size_);
- CHECK_EQ(num_input_channels, num_input_channels_);
- CHECK_EQ(num_output_channels, num_output_channels_);
+ RTC_CHECK_EQ(chunk_size, chunk_size_);
+ RTC_CHECK_EQ(num_input_channels, num_input_channels_);
+ RTC_CHECK_EQ(num_output_channels, num_output_channels_);
input_buffer_.Write(input, num_input_channels, chunk_size_);
size_t first_frame_in_block = frame_offset_;
« no previous file with comments | « webrtc/common_audio/audio_ring_buffer.cc ('k') | webrtc/common_audio/channel_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698