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

Unified Diff: media/base/yuv_convert.cc

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month 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/audio/audio_parameters.h ('k') | mojo/converters/ime/ime_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/yuv_convert.cc
diff --git a/media/base/yuv_convert.cc b/media/base/yuv_convert.cc
index 20fba1f726940b22ed23ecb087981ed2d12801ee..9bae5b39522a4003f1be96eb03d030e8cffc3a9f 100644
--- a/media/base/yuv_convert.cc
+++ b/media/base/yuv_convert.cc
@@ -185,7 +185,7 @@ const int16* PopulateYUVToRGBTable(const double matrix[3][3],
// Sanity check that our constants here match the size of the statically
// allocated tables.
- COMPILE_ASSERT(
+ static_assert(
kNumTables * kNumRows * kNumColumns * kElementSize == kYUVToRGBTableSize,
"YUV lookup table size doesn't match expectation.");
« no previous file with comments | « media/audio/audio_parameters.h ('k') | mojo/converters/ime/ime_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698