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

Unified Diff: cc/layers/picture_image_layer_unittest.cc

Issue 2873003002: Add stable id to PaintImage. (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | cc/paint/discardable_image_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_image_layer_unittest.cc
diff --git a/cc/layers/picture_image_layer_unittest.cc b/cc/layers/picture_image_layer_unittest.cc
index a7471faf5b5d05af04a9975c6b8b80222d697a84..e17cc6c46770ac1d020fe2bf6c051a1ac3ca27d7 100644
--- a/cc/layers/picture_image_layer_unittest.cc
+++ b/cc/layers/picture_image_layer_unittest.cc
@@ -40,7 +40,8 @@ TEST(PictureImageLayerTest, PaintContentsToDisplayList) {
image_canvas->drawRect(SkRect::MakeWH(100, 100), blue_paint);
image_canvas->drawRect(SkRect::MakeLTRB(100, 100, 200, 200), blue_paint);
- layer->SetImage(PaintImage(image_surface->makeImageSnapshot()));
+ layer->SetImage(
+ PaintImage(PaintImage::GetNextId(), image_surface->makeImageSnapshot()));
layer->SetBounds(gfx::Size(layer_rect.width(), layer_rect.height()));
scoped_refptr<DisplayItemList> display_list =
« no previous file with comments | « no previous file | cc/paint/discardable_image_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698