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

Unified Diff: cc/quads/largest_draw_quad.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/output/gl_renderer.cc ('k') | cc/quads/render_pass_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/largest_draw_quad.cc
diff --git a/cc/quads/largest_draw_quad.cc b/cc/quads/largest_draw_quad.cc
index 6445204bd192d6796f26d4eb6268fd8312892745..894be0fdbe49d704788c12d8fd3d3556e1c76085 100644
--- a/cc/quads/largest_draw_quad.cc
+++ b/cc/quads/largest_draw_quad.cc
@@ -33,33 +33,33 @@ size_t LargestDrawQuadSize() {
// Use compile assert to make sure largest is actually larger than all other
// type of draw quads.
- COMPILE_ASSERT(sizeof(CheckerboardDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. CheckerboardDrawQuad is "
- "currently largest.");
- COMPILE_ASSERT(sizeof(DebugBorderDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. DebugBorderDrawQuad is "
- "currently largest.");
- COMPILE_ASSERT(sizeof(IOSurfaceDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. IOSurfaceDrawQuad is "
- "currently largest.");
- COMPILE_ASSERT(sizeof(PictureDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. PictureDrawQuad is "
- "currently largest.");
- COMPILE_ASSERT(sizeof(TextureDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. TextureDrawQuad is "
- "currently largest.");
- COMPILE_ASSERT(sizeof(SolidColorDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. SolidColorDrawQuad is "
- "currently largest.");
- COMPILE_ASSERT(sizeof(SurfaceDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. SurfaceDrawQuad is "
- "currently largest.");
- COMPILE_ASSERT(sizeof(TileDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. TileDrawQuad is "
- "currently largest.");
- COMPILE_ASSERT(sizeof(YUVVideoDrawQuad) <= kLargestDrawQuadSize,
- "Largest Draw Quad size needs update. YUVVideoDrawQuad is "
- "currently largest.");
+ static_assert(sizeof(CheckerboardDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. CheckerboardDrawQuad is "
+ "currently largest.");
+ static_assert(sizeof(DebugBorderDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. DebugBorderDrawQuad is "
+ "currently largest.");
+ static_assert(sizeof(IOSurfaceDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. IOSurfaceDrawQuad is "
+ "currently largest.");
+ static_assert(sizeof(PictureDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. PictureDrawQuad is "
+ "currently largest.");
+ static_assert(sizeof(TextureDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. TextureDrawQuad is "
+ "currently largest.");
+ static_assert(sizeof(SolidColorDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. SolidColorDrawQuad is "
+ "currently largest.");
+ static_assert(sizeof(SurfaceDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. SurfaceDrawQuad is "
+ "currently largest.");
+ static_assert(sizeof(TileDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. TileDrawQuad is "
+ "currently largest.");
+ static_assert(sizeof(YUVVideoDrawQuad) <= kLargestDrawQuadSize,
+ "Largest Draw Quad size needs update. YUVVideoDrawQuad is "
+ "currently largest.");
return kLargestDrawQuadSize;
}
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/quads/render_pass_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698