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

Unified Diff: Source/platform/graphics/paint/DisplayItemList.h

Issue 1287093004: Slimming Paint phase 2 compositing algorithm plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address reviewer comments Created 5 years, 4 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: Source/platform/graphics/paint/DisplayItemList.h
diff --git a/Source/platform/graphics/paint/DisplayItemList.h b/Source/platform/graphics/paint/DisplayItemList.h
index 4c3ef97d74167bbd008d0a99cfa7af4a2bcd386f..a8a8306680b16d9fc65cc0bf97f31c825a83af12 100644
--- a/Source/platform/graphics/paint/DisplayItemList.h
+++ b/Source/platform/graphics/paint/DisplayItemList.h
@@ -27,6 +27,10 @@ static const size_t kDisplayItemAlignment = WTF_ALIGN_OF(BeginTransform3DDisplay
static const size_t kInitialDisplayItemsCapacity = 64;
static const size_t kMaximumDisplayItemSize = sizeof(BeginTransform3DDisplayItem);
+// Map from SimpleLayer.startPoint to the DrawingDisplayItems within its range
+// which were invalidated on this frame and do not change SimpleLayers.
+using DisplayListDiff = HashMap<DisplayItemClient, DisplayItem*>;
+
using DisplayItems = ContiguousContainer<DisplayItem, kDisplayItemAlignment>;
class PLATFORM_EXPORT DisplayItemList {
@@ -70,8 +74,9 @@ public:
void endSkippingCache() { ASSERT(m_skippingCacheCount > 0); --m_skippingCacheCount; }
bool skippingCache() const { return m_skippingCacheCount; }
- // Must be called when a painting is finished.
- void commitNewDisplayItems();
+ // Must be called when a painting is finished. If passed, a DisplayListDiff
+ // is initialized and created.
+ void commitNewDisplayItems(DisplayListDiff* = 0);
// Returns the approximate memory usage, excluding memory likely to be
// shared with the embedder after copying to WebDisplayItemList.

Powered by Google App Engine
This is Rietveld 408576698