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

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

Issue 2636373002: [Do not commit] Experiment to test for cache misses during recursion (Closed)
Patch Set: Created 3 years, 11 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 9eb113c271eb2b5925b3f1b47ab2827c34e0d924..0c2fc8aaa9306b60204142e3eec70128e384d900 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -34,6 +34,11 @@ struct PrePaintTreeWalkContext {
};
void PrePaintTreeWalk::walk(FrameView& rootFrame) {
+ //LOG(INFO) << "sizeOf(PrePaintTreeWalkContext): " << sizeof(PrePaintTreeWalkContext);
+ //LOG(INFO) << "sizeOf(PaintPropertyTreeBuilderContext): " << sizeof(PaintPropertyTreeBuilderContext);
+ //LOG(INFO) << "sizeOf(PaintInvalidatorContext): " << sizeof(PaintInvalidatorContext);
+ //LOG(INFO) << "sizeOf(PaintLayer*): " << sizeof(PaintLayer*);
+
DCHECK(rootFrame.frame().document()->lifecycle().state() ==
DocumentLifecycle::InPrePaint);
@@ -45,14 +50,14 @@ void PrePaintTreeWalk::walk(FrameView& rootFrame) {
}
bool PrePaintTreeWalk::walk(FrameView& frameView,
- const PrePaintTreeWalkContext& parentContext) {
+ PrePaintTreeWalkContext& context) {
if (frameView.shouldThrottleRendering()) {
// The walk was interrupted by throttled rendering so this subtree was not
// fully updated.
return false;
}
- PrePaintTreeWalkContext context(parentContext);
+ //PrePaintTreeWalkContext context(parentContext);
m_propertyTreeBuilder.updateProperties(frameView, context.treeBuilderContext);
m_paintInvalidator.invalidatePaintIfNeeded(frameView,
context.paintInvalidatorContext);
@@ -99,8 +104,8 @@ static void updateAuxiliaryObjectProperties(const LayoutObject& object,
}
bool PrePaintTreeWalk::walk(const LayoutObject& object,
- const PrePaintTreeWalkContext& parentContext) {
- PrePaintTreeWalkContext context(parentContext);
+ PrePaintTreeWalkContext& context) {
+ //PrePaintTreeWalkContext context(parentContext);
// This must happen before updateContextForBoxPosition, because the
// latter reads some of the state computed uere.
« 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