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

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

Issue 2307623002: [SPv2] Defer decision of raster invalidation after paint for changes z-index, transform, etc. (Closed)
Patch Set: Remove duplicated spv2 expectation entries 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/PaintChunker.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h b/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
index 2ea786182599e20efa5fe9123f08894a9e5fc13d..ccf6518aeaa62c29026cc9a96b599bd2ad44d8d8 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
@@ -39,6 +39,13 @@ public:
size_t lastChunkIndex() const { return m_chunks.isEmpty() ? kNotFound : m_chunks.size() - 1; }
PaintChunk& lastChunk() { return m_chunks.last(); }
+ PaintChunk& findChunkByDisplayItemIndex(size_t index)
+ {
+ auto chunk = findChunkInVectorByDisplayItemIndex(m_chunks, index);
+ DCHECK(chunk != m_chunks.end());
+ return *chunk;
+ }
+
void clear();
// Releases the generated paint chunk list and resets the state of this

Powered by Google App Engine
This is Rietveld 408576698