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

Unified Diff: webrtc/video_engine/overuse_frame_detector.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/video_engine/encoder_state_feedback.cc ('k') | webrtc/video_engine/vie_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_engine/overuse_frame_detector.cc
diff --git a/webrtc/video_engine/overuse_frame_detector.cc b/webrtc/video_engine/overuse_frame_detector.cc
index 47248658e830c7636bbeb2c824343c8e940a8ad2..441b1062764dd37b24f05c8a9c972c00598d1862 100644
--- a/webrtc/video_engine/overuse_frame_detector.cc
+++ b/webrtc/video_engine/overuse_frame_detector.cc
@@ -214,7 +214,7 @@ OveruseFrameDetector::OveruseFrameDetector(
usage_(new SendProcessingUsage(options)),
frame_queue_(new FrameQueue()),
last_sample_time_ms_(0) {
- DCHECK(metrics_observer != nullptr);
+ RTC_DCHECK(metrics_observer != nullptr);
// Make sure stats are initially up-to-date. This simplifies unit testing
// since we don't have to trigger an update using one of the methods which
// would also alter the overuse state.
@@ -243,7 +243,7 @@ void OveruseFrameDetector::UpdateCpuOveruseMetrics() {
}
int64_t OveruseFrameDetector::TimeUntilNextProcess() {
- DCHECK(processing_thread_.CalledOnValidThread());
+ RTC_DCHECK(processing_thread_.CalledOnValidThread());
return next_process_time_ - clock_->TimeInMilliseconds();
}
@@ -328,7 +328,7 @@ void OveruseFrameDetector::AddProcessingTime(int elapsed_ms) {
}
int32_t OveruseFrameDetector::Process() {
- DCHECK(processing_thread_.CalledOnValidThread());
+ RTC_DCHECK(processing_thread_.CalledOnValidThread());
int64_t now = clock_->TimeInMilliseconds();
« no previous file with comments | « webrtc/video_engine/encoder_state_feedback.cc ('k') | webrtc/video_engine/vie_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698