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

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

Issue 2580143003: [SPv2] Disable CompositingRecorder collapsing for SPv2 (Closed)
Patch Set: update layout test expectations Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp
index 7930f26670f9003dd853b62b7e35205c4f48b8a7..2a2d3a86e97906495a355faea6f943d14b7dfc31 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp
@@ -52,8 +52,8 @@ void CompositingRecorder::endCompositing(GraphicsContext& graphicsContext,
const DisplayItem* lastDisplayItem = paintController.lastDisplayItem(0);
const DisplayItem* secondToLastDisplayItem =
paintController.lastDisplayItem(1);
- if (lastDisplayItem && secondToLastDisplayItem &&
- lastDisplayItem->drawsContent() &&
+ if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lastDisplayItem &&
+ secondToLastDisplayItem && lastDisplayItem->drawsContent() &&
secondToLastDisplayItem->getType() == DisplayItem::kBeginCompositing) {
FloatRect cullRect(
((DrawingDisplayItem*)lastDisplayItem)->picture()->cullRect());
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698