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

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

Issue 2735823005: Implement a non-recursive PrePaint treewalk (Closed)
Patch Set: Faster, cleaner Created 3 years, 9 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/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 634292466820fdcb00809a6b1e83e483e73c4e1a..0333958dd73e33e52e103de181b0345e52cfd389 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
@@ -14,6 +14,7 @@ namespace blink {
class FrameView;
class GeometryMapper;
class LayoutObject;
+class LayoutView;
struct PrePaintTreeWalkContext;
// This class walks the whole layout tree, beginning from the root FrameView,
@@ -26,8 +27,13 @@ class PrePaintTreeWalk {
void walk(FrameView& rootFrame);
private:
+ // Walk a FrameView and the entire LayoutObject tree it contains.
void walk(FrameView&, const PrePaintTreeWalkContext&);
- void walk(const LayoutObject&, const PrePaintTreeWalkContext&);
+ // Walk a LayoutView and the entire LayoutObject tree below.
+ void walk(const LayoutView&, const PrePaintTreeWalkContext&);
+
+ // Walk a single LayoutObject.
+ void walkObject(const LayoutObject&, PrePaintTreeWalkContext&);
// Invalidates paint-layer painting optimizations, such as subsequence caching
// and empty paint phase optimizations if clips from the context have changed.

Powered by Google App Engine
This is Rietveld 408576698