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

Unified Diff: cc/quads/render_pass.cc

Issue 2932053002: Use C++11 alignment primitives (Closed)
Patch Set: Fix merge Created 3 years, 6 months 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/quads/largest_draw_quad.cc ('k') | cc/raster/texture_compressor_etc1.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass.cc
diff --git a/cc/quads/render_pass.cc b/cc/quads/render_pass.cc
index 021c5e54878a237ca80581d8150d19ca362f03e4..77faaf0de957ede1ef41a8c18af5f7249015e25e 100644
--- a/cc/quads/render_pass.cc
+++ b/cc/quads/render_pass.cc
@@ -63,7 +63,7 @@ std::unique_ptr<RenderPass> RenderPass::Create(
RenderPass::RenderPass()
: quad_list(kDefaultNumQuadsToReserve),
- shared_quad_state_list(ALIGNOF(SharedQuadState),
+ shared_quad_state_list(alignof(SharedQuadState),
sizeof(SharedQuadState),
kDefaultNumSharedQuadStatesToReserve) {}
@@ -72,7 +72,7 @@ RenderPass::RenderPass()
RenderPass::RenderPass(size_t num_layers)
: has_transparent_background(true),
quad_list(kDefaultNumQuadsToReserve),
- shared_quad_state_list(ALIGNOF(SharedQuadState),
+ shared_quad_state_list(alignof(SharedQuadState),
sizeof(SharedQuadState),
num_layers) {}
@@ -80,7 +80,7 @@ RenderPass::RenderPass(size_t shared_quad_state_list_size,
size_t quad_list_size)
: has_transparent_background(true),
quad_list(quad_list_size),
- shared_quad_state_list(ALIGNOF(SharedQuadState),
+ shared_quad_state_list(alignof(SharedQuadState),
sizeof(SharedQuadState),
shared_quad_state_list_size) {}
« no previous file with comments | « cc/quads/largest_draw_quad.cc ('k') | cc/raster/texture_compressor_etc1.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698