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

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

Issue 2093103003: CL for perf tryjob on win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL for perf tryjob on mac 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
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()) {

Powered by Google App Engine
This is Rietveld 408576698