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

Unified Diff: content/renderer/pepper/pepper_video_capture_host.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/pepper/pepper_video_capture_host.cc
diff --git a/content/renderer/pepper/pepper_video_capture_host.cc b/content/renderer/pepper/pepper_video_capture_host.cc
index 6e8ea32f8b009904fa3665dafe2850c39ac143e5..ed76dc3f2b21889a2f5e890f8ec6b30637256c93 100644
--- a/content/renderer/pepper/pepper_video_capture_host.cc
+++ b/content/renderer/pepper/pepper_video_capture_host.cc
@@ -139,9 +139,9 @@ void PepperVideoCaptureHost::OnFrameReady(
return;
}
uint8* dst = reinterpret_cast<uint8*>(buffers_[i].data);
- COMPILE_ASSERT(media::VideoFrame::kYPlane == 0, y_plane_should_be_0);
- COMPILE_ASSERT(media::VideoFrame::kUPlane == 1, u_plane_should_be_1);
- COMPILE_ASSERT(media::VideoFrame::kVPlane == 2, v_plane_should_be_2);
+ static_assert(media::VideoFrame::kYPlane == 0, "y plane should be 0");
+ static_assert(media::VideoFrame::kUPlane == 1, "u plane should be 1");
+ static_assert(media::VideoFrame::kVPlane == 2, "v plane should be 2");
for (size_t j = 0; j < media::VideoFrame::NumPlanes(frame->format());
++j) {
const uint8* src = frame->data(j);
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/render_view_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698