[//cc] Port PictureLayerImpl test away from creating low res tiles
Ports ChangeRasterTranslationNukeActiveLayerTiles in anticipation of removing low-res tiling altogether. Bug: 418234930 Change-Id: Ic7ecfd9d7661a26054b8ac4e854d07bb26b4fe5a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6578724 Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1464583}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
4a222b6d9b
commit
b4ecf4b06e
@ -6293,7 +6293,7 @@ TEST_F(LegacySWPictureLayerImplTest,
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(LegacySWPictureLayerImplTest,
|
||||
TEST_F(NoLowResPictureLayerImplTest,
|
||||
ChangeRasterTranslationNukeActiveLayerTiles) {
|
||||
gfx::Size layer_bounds(200, 200);
|
||||
gfx::Size tile_size(256, 256);
|
||||
@ -6310,7 +6310,7 @@ TEST_F(LegacySWPictureLayerImplTest,
|
||||
active_layer()->draw_properties().target_space_transform =
|
||||
active_layer()->draw_properties().screen_space_transform;
|
||||
active_layer()->UpdateTiles();
|
||||
ASSERT_EQ(3u, active_layer()->tilings()->num_tilings());
|
||||
ASSERT_EQ(2u, active_layer()->tilings()->num_tilings());
|
||||
{
|
||||
PictureLayerTiling* tiling =
|
||||
active_layer()->tilings()->FindTilingWithScaleKey(2.25f);
|
||||
@ -6343,7 +6343,7 @@ TEST_F(LegacySWPictureLayerImplTest,
|
||||
// Now push to the active layer.
|
||||
// Verifies the active tiles get evicted due to slot conflict.
|
||||
host_impl()->ActivateSyncTree();
|
||||
ASSERT_EQ(3u, active_layer()->tilings()->num_tilings());
|
||||
ASSERT_EQ(2u, active_layer()->tilings()->num_tilings());
|
||||
{
|
||||
PictureLayerTiling* tiling =
|
||||
active_layer()->tilings()->FindTilingWithScaleKey(2.25f);
|
||||
|
Reference in New Issue
Block a user