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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 2857923004: cc: Keep PaintImage in DrawImage. (Closed)
Patch Set: addressed comments. Created 3 years, 7 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
Index: cc/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 42c83bfdd267f8cdc77f8da36734c6a91c1b7be3..b5071502b3c4243aba74801d68bb5d924ffe24c2 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -12317,8 +12317,8 @@ TEST_F(LayerTreeHostImplTest, CheckerImagingTileInvalidation) {
std::unique_ptr<FakeRecordingSource> recording_source =
FakeRecordingSource::CreateFilledRecordingSource(layer_size);
- sk_sp<SkImage> checkerable_image =
- CreateDiscardableImage(gfx::Size(500, 500));
+ PaintImage checkerable_image = PaintImage(
+ PaintImage::GetNextId(), CreateDiscardableImage(gfx::Size(500, 500)));
recording_source->add_draw_image(checkerable_image, gfx::Point(0, 0));
SkColor non_solid_color = SkColorSetARGB(128, 45, 56, 67);
@@ -12378,7 +12378,7 @@ TEST_F(LayerTreeHostImplTest, CheckerImagingTileInvalidation) {
EXPECT_FALSE(tile->HasRasterTask());
}
Region expected_invalidation(
- raster_source->GetRectForImage(checkerable_image->uniqueID()));
+ raster_source->GetRectForImage(checkerable_image.stable_id()));
EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation()));
}

Powered by Google App Engine
This is Rietveld 408576698