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

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

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 133e2f8e0b18840e0b0b2a9cdfefe8b825098e20..a1f98e272921c3b18df4621b32fbf41f3c464a05 100644
--- a/Source/platform/graphics/paint/DisplayItemList.h
+++ b/Source/platform/graphics/paint/DisplayItemList.h
@@ -23,6 +23,10 @@ using DisplayItems = ListContainer<DisplayItem>;
static const size_t kInitialDisplayItemsCapacity = 64;
static const size_t kMaximumDisplayItemSize = sizeof(BeginTransform3DDisplayItem);
+class DisplayListDiff {
+ // TODO(chrishtr): define and implement the diff structure.
+};
+
class PLATFORM_EXPORT DisplayItemList {
WTF_MAKE_NONCOPYABLE(DisplayItemList);
WTF_MAKE_FAST_ALLOCATED(DisplayItemList);
@@ -60,8 +64,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, the diff is initialized
+ // to the difference of the new display list from the last time commitNewDisplayItems() was called.
+ void commitNewDisplayItems(DisplayListDiff* = 0);
weiliangc 2015/07/24 19:17:15 What owns the DisplayListDiff? Root Graphics Layer
chrishtr 2015/07/24 19:27:22 The caller of commitNewDisplayItems owns it locall
// 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