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

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

Issue 593873002: Alternate way to track first paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index ff1f41082d9daf20e7ac2f30850cded9c70bb79e..c4c954a91a563be0c0cc8da20b4d64cb3c8de2c2 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -406,7 +406,7 @@ void RenderView::invalidateTreeIfNeeded(const PaintInvalidationState& paintInval
RenderBlock::invalidateTreeIfNeeded(paintInvalidationState);
}
-void RenderView::invalidatePaintForRectangle(const LayoutRect& paintInvalidationRect) const
+void RenderView::invalidatePaintForRectangle(const LayoutRect& paintInvalidationRect, InvalidationReason invalidationReason) const
{
ASSERT(!paintInvalidationRect.isEmpty());
@@ -416,7 +416,7 @@ void RenderView::invalidatePaintForRectangle(const LayoutRect& paintInvalidation
ASSERT(layer()->compositingState() == PaintsIntoOwnBacking || !frame()->ownerRenderer());
if (layer()->compositingState() == PaintsIntoOwnBacking) {
- setBackingNeedsPaintInvalidationInRect(paintInvalidationRect);
+ setBackingNeedsPaintInvalidationInRect(paintInvalidationRect, invalidationReason);
} else {
m_frameView->contentRectangleForPaintInvalidation(pixelSnappedIntRect(paintInvalidationRect));
}
« Source/core/rendering/RenderObject.cpp ('K') | « Source/core/rendering/RenderView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698