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

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: x 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 a003376d96745bbb41733766d4ad783fd9699756..fc961f5366b9e784e8d725f8aa747cfafe82fb95 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -165,7 +165,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)
@@ -210,6 +210,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
@@ -262,7 +264,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