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

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

Issue 1774193002: New paint invalidation using paint property tree walk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correct tracking of paintInvalidationContainer Created 4 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/PaintPropertyTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
index cdfacadf945ad812cc28a4139c59f31185ec95f7..2f208f24e875319b4c241a23d86a7b18eeb27f19 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
@@ -5,10 +5,13 @@
#ifndef PaintPropertyTreeBuilder_h
#define PaintPropertyTreeBuilder_h
+#include "wtf/Vector.h"
+
namespace blink {
class FrameView;
class LayoutObject;
+class PaintInvalidationState;
struct PaintPropertyTreeBuilderContext;
// This class walks the whole layout tree, beginning from the root FrameView, across
@@ -20,9 +23,13 @@ class PaintPropertyTreeBuilder {
public:
void buildPropertyTrees(FrameView& rootFrame);
+ const Vector<LayoutObject*>& pendingDelayedPaintInvalidations() const { return m_pendingDelayedPaintInvalidations; }
pdr. 2016/03/11 02:56:41 Does this need to be public or can it be done as t
Xianzhu 2016/03/11 20:03:45 We need to handle the delayed invalidations after
+
private:
pdr. 2016/03/11 02:56:41 This class will form the basis of all our paint wo
Xianzhu 2016/03/11 20:03:45 PrePaintTreeWalk sgtm. chrishtr wdyt?
chrishtr 2016/03/11 21:30:00 SGTM
- void walk(FrameView&, const PaintPropertyTreeBuilderContext&);
- void walk(LayoutObject&, const PaintPropertyTreeBuilderContext&);
+ void walk(FrameView&, const PaintPropertyTreeBuilderContext&, const PaintInvalidationState*);
+ void walk(const LayoutObject&, const PaintPropertyTreeBuilderContext&, const PaintInvalidationState*);
+
+ Vector<LayoutObject*> m_pendingDelayedPaintInvalidations;
pdr. 2016/03/11 02:56:41 Can you add a comment above this? Something like s
Xianzhu 2016/03/11 20:03:45 Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698