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

Unified Diff: cc/playback/display_item_list.h

Issue 1163803003: cc: Implement RemoveLast for DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: basic unit tests 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
Index: cc/playback/display_item_list.h
diff --git a/cc/playback/display_item_list.h b/cc/playback/display_item_list.h
index 79d38f5ddb1dab61dca00f34d10f3acaaddff90d..c238daa67c2da810ab1ffaeffa72c3e154cc0132 100644
--- a/cc/playback/display_item_list.h
+++ b/cc/playback/display_item_list.h
@@ -53,6 +53,11 @@ class CC_EXPORT DisplayItemList
return items_.AllocateAndConstruct<DisplayItemType>();
}
+ // Removes the last item. This cannot be called on lists with cached pictures
+ // (since the data may already have been incorporated into cached picture
+ // sizes, etc).
+ void RemoveLast();
+
// Called after all items are appended, to process the items and, if
// applicable, create an internally cached SkPicture.
void Finalize();

Powered by Google App Engine
This is Rietveld 408576698