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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp

Issue 1396783003: Factor PaintArtifact out of DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@const-replay
Patch Set: Created 5 years, 2 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/ContentLayerDelegate.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
index 7919c8b812fd4590065be181c4b9a26656c3603b..2fa29b1df8772470fa7d87d85283e7c2e2bb442d 100644
--- a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
@@ -85,7 +85,7 @@ void ContentLayerDelegate::paintContents(
// here so the browser is usable during development and does not crash due
// to committing the new display items twice.
if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) {
- m_painter->displayItemList()->appendToWebDisplayItemList(webDisplayItemList);
+ m_painter->displayItemList()->paintArtifact().appendToWebDisplayItemList(webDisplayItemList);
return;
}
@@ -107,7 +107,8 @@ void ContentLayerDelegate::paintContents(
m_painter->paint(context, clip);
- displayItemList->commitNewDisplayItemsAndAppendToWebDisplayItemList(webDisplayItemList);
+ displayItemList->commitNewDisplayItems();
+ displayItemList->paintArtifact().appendToWebDisplayItemList(webDisplayItemList);
}
size_t ContentLayerDelegate::approximateUnsharedMemoryUsage() const

Powered by Google App Engine
This is Rietveld 408576698