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

Unified Diff: cc/output/gl_renderer.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/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_,

Powered by Google App Engine
This is Rietveld 408576698