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

Unified Diff: cc/output/geometry_binding.cc

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.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
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];

Powered by Google App Engine
This is Rietveld 408576698