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

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

Issue 1287093004: Slimming Paint phase 2 compositing algorithm plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address reviewer comments Created 5 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: Source/platform/graphics/ContentLayerDelegate.cpp
diff --git a/Source/platform/graphics/ContentLayerDelegate.cpp b/Source/platform/graphics/ContentLayerDelegate.cpp
index 657ecb92854104a0c810de448a4d56e21085ef67..268ef66f7ea341ec1a8b6fd1371669abb47d46b4 100644
--- a/Source/platform/graphics/ContentLayerDelegate.cpp
+++ b/Source/platform/graphics/ContentLayerDelegate.cpp
@@ -90,6 +90,17 @@ void ContentLayerDelegate::paintContents(
ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
+ // TODO: Remove this when slimming paint v2 is further along. This is only
chrishtr 2015/08/13 21:33:16 TODO(pdr)
pdr. 2015/08/14 00:10:29 Done
+ // here so the browser is usable during development and does not crash due
+ // to committing the new display items twice.
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
+ if (m_painter->displayItemList()) {
+ for (auto& displayItem : m_painter->displayItemList()->displayItems())
+ displayItem.appendToWebDisplayItemList(webDisplayItemList);
+ }
+ return;
+ }
+
DisplayItemList* displayItemList = m_painter->displayItemList();
ASSERT(displayItemList);
displayItemList->setDisplayItemConstructionIsDisabled(

Powered by Google App Engine
This is Rietveld 408576698