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

Unified Diff: media/filters/audio_renderer_algorithm.cc

Issue 826953002: replace COMPILE_ASSERT with static_assert in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 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 | « media/ffmpeg/ffmpeg_common.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_algorithm.cc
diff --git a/media/filters/audio_renderer_algorithm.cc b/media/filters/audio_renderer_algorithm.cc
index 31c29ebb67a395f0b65b5265dec8ff401a97da88..16e903c6a3b62f9dd5b190dd8565afca9457ca76 100644
--- a/media/filters/audio_renderer_algorithm.cc
+++ b/media/filters/audio_renderer_algorithm.cc
@@ -68,9 +68,9 @@ static const int kMaxCapacityInSeconds = 3;
// maintain this number of frames.
static const int kStartingBufferSizeInFrames = 16 * 512;
-COMPILE_ASSERT(kStartingBufferSizeInFrames <
- (kMaxCapacityInSeconds * limits::kMinSampleRate),
- max_capacity_smaller_than_starting_buffer_size);
+static_assert(kStartingBufferSizeInFrames <
+ (kMaxCapacityInSeconds * limits::kMinSampleRate),
+ "max capacity smaller than starting buffer size");
AudioRendererAlgorithm::AudioRendererAlgorithm()
: channels_(0),
« no previous file with comments | « media/ffmpeg/ffmpeg_common.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698