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

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

Issue 2230513005: Move visual rect unioning between paired items to cc::DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review feedback. Created 4 years, 4 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/DisplayItemList.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
index 6ebb963e7cb3c039a13a0bac6fb6bd32d29ccb4b..5f2183aa57c4af63f0891c00c64c191a810ecba7 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
@@ -32,14 +32,12 @@ public:
DisplayItemList(DisplayItemList&& source)
: ContiguousContainer(std::move(source))
, m_visualRects(std::move(source.m_visualRects))
- , m_beginItemIndices(std::move(source.m_beginItemIndices))
{}
DisplayItemList& operator=(DisplayItemList&& source)
{
ContiguousContainer::operator=(std::move(source));
m_visualRects = std::move(source.m_visualRects);
- m_beginItemIndices = std::move(source.m_beginItemIndices);
return *this;
}
@@ -70,12 +68,7 @@ public:
Range<const_iterator> itemsInPaintChunk(const PaintChunk&) const;
private:
- // If we're currently within a paired display item block, unions the
- // given visual rect with the begin display item's visual rect.
- void growCurrentBeginItemVisualRect(const IntRect& visualRect);
-
Vector<IntRect> m_visualRects;
- Vector<size_t> m_beginItemIndices;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698