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

Unified Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.cc

Issue 2706753005: Make use_single_core option configurable in VideoProcessorIntegrationTests. (Closed)
Patch Set: Created 3 years, 10 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/video_coding/codecs/test/videoprocessor.cc
diff --git a/webrtc/modules/video_coding/codecs/test/videoprocessor.cc b/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
index 2acc8484e295b02958c474d4045ed67d4df48ddf..99a34fc60ee6446781a4e9924b40b17f110c9bf0 100644
--- a/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
+++ b/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
@@ -124,10 +124,8 @@ bool VideoProcessorImpl::Init() {
<< "Failed to register decode complete callback";
// Init the encoder and decoder.
- uint32_t num_cores = 1;
- if (!config_.use_single_core) {
- num_cores = CpuInfo::DetectNumberOfCores();
- }
+ uint32_t num_cores =
+ config_.use_single_core ? 1 : CpuInfo::DetectNumberOfCores();
RTC_CHECK_EQ(
encoder_->InitEncode(config_.codec_settings, num_cores,
config_.networking_config.max_payload_size_in_bytes),

Powered by Google App Engine
This is Rietveld 408576698