Index: cc/output/gl_renderer.cc |
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc |
index 7896bb88d56441a5b56a746af14afa89d731361d..903805b2775a7a6292f77c5d10a22c09669884e0 100644 |
--- a/cc/output/gl_renderer.cc |
+++ b/cc/output/gl_renderer.cc |
@@ -2060,9 +2060,10 @@ void GLRenderer::FlushTextureQuadCache() { |
DCHECK_EQ(GL_TEXTURE0, GetActiveTextureUnit(gl_)); |
GLC(gl_, gl_->BindTexture(GL_TEXTURE_2D, locked_quad.texture_id())); |
- COMPILE_ASSERT(sizeof(Float4) == 4 * sizeof(float), struct_is_densely_packed); |
- COMPILE_ASSERT(sizeof(Float16) == 16 * sizeof(float), |
- struct_is_densely_packed); |
+ static_assert(sizeof(Float4) == 4 * sizeof(float), |
+ "Float4 struct should be densely packed"); |
+ static_assert(sizeof(Float16) == 16 * sizeof(float), |
+ "Float16 struct should be densely packed"); |
// Upload the tranforms for both points and uvs. |
GLC(gl_, |