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

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

Issue 1327563003: Don't cache subsequence whose layer is not fully contained by repaint rect (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For review Created 5 years, 3 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.cpp
diff --git a/Source/platform/graphics/paint/DisplayItemList.cpp b/Source/platform/graphics/paint/DisplayItemList.cpp
index 6f2a8753ee589bad8d912050f607ba5bd7a32cd3..90d34ce62bc17ce773fd6eb54167f498e532eec3 100644
--- a/Source/platform/graphics/paint/DisplayItemList.cpp
+++ b/Source/platform/graphics/paint/DisplayItemList.cpp
@@ -94,8 +94,11 @@ void DisplayItemList::processNewItem(DisplayItem& displayItem)
#endif // ENABLE(ASSERT)
ASSERT(!displayItem.skippedCache()); // Only DisplayItemList can set the flag.
- if (skippingCache())
+ if (skippingCache()) {
+ // TODO(wangxianzhu): Distinguish skippingCache and uncacheablility.
chrishtr 2015/09/08 22:48:00 What's the difference exactly?
Xianzhu 2015/09/09 16:50:33 Wanted to distinguish "skip-cache but cacheable" a
displayItem.setSkippedCache();
+ displayItem.setUncacheable();
+ }
}
void DisplayItemList::beginScope()

Powered by Google App Engine
This is Rietveld 408576698