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

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 474793002: Add GraphicsLayerDebugInfo::includesNewPaintInvalidation to distinguish paint from new RenderObjects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use GraphicsLayerInfo Created 6 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/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index cb6890fc7fbb2181ff07bf906bad36f7c4adef6c..6f02bfe99ec2af9d8c54d7347ba194dcd44b06f5 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -1672,6 +1672,10 @@ InvalidationReason RenderObject::invalidatePaintIfNeeded(const RenderLayerModelO
return invalidationReason;
}
+ if (view()->usesCompositing() && !everHadPaintInvalidation())
+ paintInvalidationContainer.layer()->paintInvalidator().setBackingIncludesFirstPaintInvalidation();
+ setEverHadPaintInvalidation(true);
chrishtr 2014/08/20 17:10:31 I think this should go in RenderObject::invalidate
kouhei (in TOK) 2014/08/21 04:42:53 Hmm. RenderObject::invalidatePaintUsingContainer()
chrishtr 2014/08/21 21:28:34 Well we need to make sure it's hit in all cases. S
kouhei (in TOK) 2014/08/25 01:57:58 Done.
+
fullyInvalidatePaint(paintInvalidationContainer, invalidationReason, oldBounds, newBounds);
return invalidationReason;
}

Powered by Google App Engine
This is Rietveld 408576698