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]; |