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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.h

Issue 2307623002: [SPv2] Defer decision of raster invalidation after paint for changes z-index, transform, etc. (Closed)
Patch Set: All paint property Created 4 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: third_party/WebKit/Source/platform/graphics/paint/PaintController.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
index bb36aee57305ce5d14b5543b896b9a42c2db2f93..64e5e0cdb3f448173f33081241a5b91ed38cdfb3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -164,7 +164,7 @@ protected:
, m_imagePainted(false)
, m_skippingCacheCount(0)
, m_numCachedNewItems(0)
- , m_currentChunkIsFromCachedSubsequence(true)
+ , m_currentCachedSubsequenceBeginIndexInNewList(kNotFound)
#if DCHECK_IS_ON()
, m_numSequentialMatches(0)
, m_numOutOfOrderMatches(0)
@@ -209,6 +209,8 @@ private:
void generateChunkRasterInvalidationRects(PaintChunk& newChunk);
void generateChunkRasterInvalidationRectsComparingOldChunk(PaintChunk& newChunk, const PaintChunk& oldChunk);
+ void generateChunkRasterInvalidationRectsForReorderedItems(PaintChunk& newChunk, const PaintChunk& oldChunk,
+ Vector<size_t>::const_iterator, Vector<size_t>::const_iterator, Vector<size_t>::const_iterator, Vector<size_t>::const_iterator);
#if DCHECK_IS_ON()
// The following two methods are for checking under-invalidations
@@ -261,7 +263,7 @@ private:
// - chunks are matched not only for requests of cached display items, but also non-cached display items.
IndicesByClientMap m_outOfOrderChunkIndices;
- bool m_currentChunkIsFromCachedSubsequence;
+ size_t m_currentCachedSubsequenceBeginIndexInNewList;
size_t m_nextChunkToMatch;
DisplayItemClient::CacheGenerationOrInvalidationReason m_currentCacheGeneration;

Powered by Google App Engine
This is Rietveld 408576698