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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 2268643002: Change GPU Tile rounding to 32 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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/layers/picture_layer_impl.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index 1272add7f9e90be56810e6d190d15e5c133ffd5b..59b6f58391c805d65e244d9f9a3568baec20e48f 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -4754,8 +4754,8 @@ TEST_F(TileSizeTest, TileSizes) {
result = layer->CalculateTileSize(gfx::Size(10000, 10000));
EXPECT_EQ(result.width(),
MathUtil::UncheckedRoundUp(
- 2000 + 2 * PictureLayerTiling::kBorderTexels, 4));
- EXPECT_EQ(result.height(), 504); // 500 + 2, 4-byte aligned.
+ 2000 + 2 * PictureLayerTiling::kBorderTexels, 32));
+ EXPECT_EQ(result.height(), 512); // 500 + 2, 32-byte aligned.
// Clamp and round-up, when smaller than viewport.
// Tile-height doubles to 50% when width shrinks to <= 50%.
@@ -4763,7 +4763,7 @@ TEST_F(TileSizeTest, TileSizes) {
layer->set_gpu_raster_max_texture_size(host_impl()->device_viewport_size());
result = layer->CalculateTileSize(gfx::Size(447, 10000));
EXPECT_EQ(result.width(), 448);
- EXPECT_EQ(result.height(), 504); // 500 + 2, 4-byte aliged.
+ EXPECT_EQ(result.height(), 512); // 500 + 2, 32-byte aliged.
// Largest layer is 50% of viewport width (rounded up), and
// 50% of viewport in height.
@@ -4772,7 +4772,7 @@ TEST_F(TileSizeTest, TileSizes) {
EXPECT_EQ(result.height(), 448);
result = layer->CalculateTileSize(gfx::Size(500, 499));
EXPECT_EQ(result.width(), 512);
- EXPECT_EQ(result.height(), 504); // 500 + 2, 4-byte aligned.
+ EXPECT_EQ(result.height(), 512); // 500 + 2, 32-byte aligned.
}
TEST_F(NoLowResPictureLayerImplTest, LowResWasHighResCollision) {
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698