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

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

Issue 2092953002: Enable under-invalidation checking in tests calling runAfterLayoutAndPaint() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/resources/run-after-layout-and-paint.js ('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/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 7a3cfb4f7bf081b928af2c6143fac2c545b74fc5..2b7413f8c49a3ec6d590679d313807dd080d4337 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -598,8 +598,11 @@ void GraphicsLayer::trackPaintInvalidation(const DisplayItemClient& client, cons
return;
PaintInvalidationTracking& tracking = paintInvalidationTrackingMap().add(this, PaintInvalidationTracking()).storedValue->value;
- PaintInvalidationInfo info = { &client, client.debugName(), rect, reason };
- tracking.trackedPaintInvalidations.append(info);
+
+ if (m_isTrackingPaintInvalidations) {
+ PaintInvalidationInfo info = { &client, client.debugName(), rect, reason };
+ tracking.trackedPaintInvalidations.append(info);
+ }
#if DCHECK_IS_ON()
if (RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabled()) {
« no previous file with comments | « third_party/WebKit/LayoutTests/resources/run-after-layout-and-paint.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698