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

Unified Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h

Issue 2539693002: Early-out from the prepaint tree walk (Closed)
Patch Set: Do not force subtree updates for all paint invalidation reasons, add todo to track paint offset cha… Created 4 years, 1 month 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/core/paint/PrePaintTreeWalk.h
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
index d0c7300095fd2df33147198e94fea34e2351b34e..9b3b97b8d0a86e457a496ac67e4a46bd51986e48 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
@@ -22,8 +22,12 @@ class PrePaintTreeWalk {
void walk(FrameView& rootFrame);
private:
- void walk(FrameView&, const PrePaintTreeWalkContext&);
- void walk(const LayoutObject&, const PrePaintTreeWalkContext&);
+ // Throttled rendering (see: FrameView::shouldThrottleRendering()) can prevent
+ // walking into a subtree.
+ enum DescendantsUpdated { FullyUpdated = true, NotFullyUpdated = false };
+
+ DescendantsUpdated walk(FrameView&, const PrePaintTreeWalkContext&);
+ DescendantsUpdated walk(const LayoutObject&, const PrePaintTreeWalkContext&);
PaintPropertyTreeBuilder m_propertyTreeBuilder;
PaintInvalidator m_paintInvalidator;

Powered by Google App Engine
This is Rietveld 408576698