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

Unified Diff: Source/core/paint/BlockPainter.cpp

Issue 847783003: New display item caching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: New method, supporting partial paint Created 5 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
Index: Source/core/paint/BlockPainter.cpp
diff --git a/Source/core/paint/BlockPainter.cpp b/Source/core/paint/BlockPainter.cpp
index 7f3b8633816b7e5a4cbdafb07fa3f3bc9688e569..a3cef5e84d1af781d7c7a20d07716417c118b3c8 100644
--- a/Source/core/paint/BlockPainter.cpp
+++ b/Source/core/paint/BlockPainter.cpp
@@ -17,6 +17,7 @@
#include "core/paint/LineBoxListPainter.h"
#include "core/paint/RenderDrawingRecorder.h"
#include "core/paint/ScrollableAreaPainter.h"
+#include "core/paint/SubtreeInfoRecorder.h"
#include "core/rendering/PaintInfo.h"
#include "core/rendering/RenderBlock.h"
#include "core/rendering/RenderFlexibleBox.h"
@@ -32,6 +33,7 @@ namespace blink {
void BlockPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
PaintInfo localPaintInfo(paintInfo);
+ SubtreeInfoRecorder subtreeInfoRecorder(paintInfo.context, m_renderBlock, localPaintInfo.phase);
ANNOTATE_GRAPHICS_CONTEXT(localPaintInfo, &m_renderBlock);
@@ -50,6 +52,8 @@ void BlockPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOff
return;
}
+ subtreeInfoRecorder.begin();
+
// There are some cases where not all clipped visual overflow is accounted for.
// FIXME: reduce the number of such cases.
ContentsClipBehavior contentsClipBehavior = ForceContentsClip;

Powered by Google App Engine
This is Rietveld 408576698