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

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

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/PaintController.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
index 58d2f40c5f37cedd56612e5169d3e4729655f747..cde9a3c99881117026576217ac7b733d00d121e9 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
@@ -439,6 +439,7 @@ void PaintController::commitNewDisplayItems(const LayoutSize& offsetFromLayoutOb
if (gpuAnalyzer.suitableForGpuRasterization())
item.analyzeForGpuRasterization(gpuAnalyzer);
+ // TODO(wkorman): Only compute and append visual rect for drawings.
m_newDisplayItemList.appendVisualRect(visualRectForDisplayItem(item, offsetFromLayoutObject));
if (item.isCacheable()) {
@@ -512,6 +513,7 @@ void PaintController::appendDebugDrawingAfterCommit(const DisplayItemClient& dis
DCHECK(m_newDisplayItemList.isEmpty());
DrawingDisplayItem& displayItem = m_currentPaintArtifact.getDisplayItemList().allocateAndConstruct<DrawingDisplayItem>(displayItemClient, DisplayItem::DebugDrawing, picture);
displayItem.setSkippedCache();
+ // TODO(wkorman): Only compute and append visual rect for drawings.
m_currentPaintArtifact.getDisplayItemList().appendVisualRect(visualRectForDisplayItem(displayItem, offsetFromLayoutObject));
}

Powered by Google App Engine
This is Rietveld 408576698