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

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

Issue 2763833003: Optimize PaintInvalidatorContext::mapLocalRectToVisualRectInBacking() (Closed)
Patch Set: - 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
index 8706e09f2a5c079a2ddc0af2eb68557368136677..33cb5d7d4332cb64cb49dd69370208a2c0ff1a6c 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -15,10 +15,10 @@
namespace blink {
struct PrePaintTreeWalkContext {
- PrePaintTreeWalkContext()
+ PrePaintTreeWalkContext(GeometryMapper& geometryMapper)
: treeBuilderContext(
WTF::wrapUnique(new PaintPropertyTreeBuilderContext)),
- paintInvalidatorContext(*treeBuilderContext),
+ paintInvalidatorContext(*treeBuilderContext, geometryMapper),
ancestorOverflowPaintLayer(nullptr),
ancestorTransformedOrRootPaintLayer(nullptr) {}
PrePaintTreeWalkContext(const PrePaintTreeWalkContext& parentContext)
@@ -48,7 +48,7 @@ void PrePaintTreeWalk::walk(FrameView& rootFrame) {
DCHECK(rootFrame.frame().document()->lifecycle().state() ==
DocumentLifecycle::InPrePaint);
- PrePaintTreeWalkContext initialContext;
+ PrePaintTreeWalkContext initialContext(m_geometryMapper);
m_propertyTreeBuilder.setupInitialContext(*initialContext.treeBuilderContext);
initialContext.ancestorTransformedOrRootPaintLayer =
rootFrame.layoutView()->layer();
« no previous file with comments | « third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698