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

Unified Diff: cc/layers/picture_image_layer_unittest.cc

Issue 1123983002: cc: Use a ListContainer for DisplayItemList to reduce allocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaylistcontainer: fixdcheck Created 5 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 | « cc/layers/picture_image_layer.cc ('k') | cc/quads/list_container.h » ('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 cd95c9fde0b69840bdde477ae695be1df29118f3..0ed39c216b2869721c034ad9c746c9009ce205c2 100644
--- a/cc/layers/picture_image_layer_unittest.cc
+++ b/cc/layers/picture_image_layer_unittest.cc
@@ -39,6 +39,7 @@ TEST(PictureImageLayerTest, PaintContentsToDisplayList) {
layer->PaintContentsToDisplayList(
display_list.get(), layer_rect,
ContentLayerClient::PAINTING_BEHAVIOR_NORMAL);
+ display_list->ProcessAppendedItems();
unsigned char actual_pixels[4 * 200 * 200] = {0};
DrawDisplayList(actual_pixels, layer_rect, display_list);
@@ -70,6 +71,7 @@ TEST(PictureImageLayerTest, PaintContentsToCachedDisplayList) {
layer->PaintContentsToDisplayList(
display_list.get(), layer_rect,
ContentLayerClient::PAINTING_BEHAVIOR_NORMAL);
+ display_list->ProcessAppendedItems();
display_list->CreateAndCacheSkPicture();
unsigned char actual_pixels[4 * 200 * 200] = {0};
DrawDisplayList(actual_pixels, layer_rect, display_list);
« no previous file with comments | « cc/layers/picture_image_layer.cc ('k') | cc/quads/list_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698