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

Unified Diff: content/renderer/gpu/stream_texture_host_android.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixups 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
Index: content/renderer/gpu/stream_texture_host_android.cc
diff --git a/content/renderer/gpu/stream_texture_host_android.cc b/content/renderer/gpu/stream_texture_host_android.cc
index b62903fd15fdb1b1b730d40fb84c3834a404f192..fe63557ca2bd806b8b68ca508e3fc03e96c43bca 100644
--- a/content/renderer/gpu/stream_texture_host_android.cc
+++ b/content/renderer/gpu/stream_texture_host_android.cc
@@ -60,8 +60,8 @@ void StreamTextureHost::OnFrameAvailable() {
void StreamTextureHost::OnMatrixChanged(
const GpuStreamTextureMsg_MatrixChanged_Params& params) {
- COMPILE_ASSERT(sizeof(params) == sizeof(float) * 16,
- bad_GpuStreamTextureMsg_MatrixChanged_Params_format);
+ static_assert(sizeof(params) == sizeof(float) * 16,
+ "bad GpuStreamTextureMsg MatrixChanged_Params format");
if (listener_)
listener_->OnMatrixChanged((const float*)&params);
}
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | content/renderer/media/webrtc/media_stream_track_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698