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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp

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/PaintArtifact.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
index 21c722b1686e91869991884448a6bf00d7d03d2d..528f31b886948436f746505e57ddf1a07b3a61bc 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
@@ -77,20 +77,6 @@ PaintArtifact& PaintArtifact::operator=(PaintArtifact&& source)
return *this;
}
-static bool compareChunkAndIndex(const PaintChunk& chunk, size_t index)
-{
- return chunk.endIndex <= index;
-}
-
-Vector<PaintChunk>::const_iterator PaintArtifact::findChunkByDisplayItemIndex(size_t index) const
-{
- auto chunkIt = std::lower_bound(m_paintChunks.begin(), m_paintChunks.end(), index, compareChunkAndIndex);
- DCHECK(chunkIt != m_paintChunks.end());
- DCHECK(index >= chunkIt->beginIndex);
- DCHECK(index < chunkIt->endIndex);
- return chunkIt;
-}
-
void PaintArtifact::reset()
{
m_displayItemList.clear();

Powered by Google App Engine
This is Rietveld 408576698