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

Unified Diff: cc/output/geometry_binding.cc

Issue 804373004: replace COMPILE_ASSERT with static_assert in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « cc/base/util.h ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/geometry_binding.cc
diff --git a/cc/output/geometry_binding.cc b/cc/output/geometry_binding.cc
index 054a96293f12629eb3f014250ee754ae04df1edc..eda2a5ca827552f5593611be816b0079258f85d6 100644
--- a/cc/output/geometry_binding.cc
+++ b/cc/output/geometry_binding.cc
@@ -26,9 +26,10 @@ GeometryBinding::GeometryBinding(gpu::gles2::GLES2Interface* gl,
uint16 data[6];
};
- COMPILE_ASSERT(sizeof(Quad) == 24 * sizeof(float), struct_is_densely_packed);
- COMPILE_ASSERT(sizeof(QuadIndex) == 6 * sizeof(uint16_t),
- struct_is_densely_packed);
+ static_assert(sizeof(Quad) == 24 * sizeof(float),
+ "struct Quad should be densely packed");
+ static_assert(sizeof(QuadIndex) == 6 * sizeof(uint16_t),
+ "struct QuadIndex should be densely packed");
Quad quad_list[8];
QuadIndex quad_index_list[8];
« no previous file with comments | « cc/base/util.h ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698