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

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

Issue 1315993004: Implement a paint offset cache for slimming paint v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase more (world moved in the past hour) Created 5 years, 4 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 | « Source/core/paint/FrameSetPainter.cpp ('k') | Source/core/paint/ImagePainter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/HTMLCanvasPainter.cpp
diff --git a/Source/core/paint/HTMLCanvasPainter.cpp b/Source/core/paint/HTMLCanvasPainter.cpp
index 9a8b1ef3e955058f8a1221429cb4184c9916363c..46b440a5a866b9e98b8b563344bf416f095cfaa2 100644
--- a/Source/core/paint/HTMLCanvasPainter.cpp
+++ b/Source/core/paint/HTMLCanvasPainter.cpp
@@ -17,7 +17,7 @@ namespace blink {
void HTMLCanvasPainter::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
GraphicsContext* context = paintInfo.context;
- if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, m_layoutHTMLCanvas, paintInfo.phase))
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, m_layoutHTMLCanvas, paintInfo.phase, paintOffset))
return;
LayoutRect contentRect = m_layoutHTMLCanvas.contentBoxRect();
@@ -25,7 +25,7 @@ void HTMLCanvasPainter::paintReplaced(const PaintInfo& paintInfo, const LayoutPo
LayoutRect paintRect = m_layoutHTMLCanvas.replacedContentRect();
paintRect.moveBy(paintOffset);
- LayoutObjectDrawingRecorder drawingRecorder(*context, m_layoutHTMLCanvas, paintInfo.phase, contentRect);
+ LayoutObjectDrawingRecorder drawingRecorder(*context, m_layoutHTMLCanvas, paintInfo.phase, contentRect, paintOffset);
#if ENABLE(ASSERT)
// The drawing may be in display list mode or image mode, producing different pictures for the same result.
drawingRecorder.setUnderInvalidationCheckingMode(DrawingDisplayItem::CheckBitmap);
« no previous file with comments | « Source/core/paint/FrameSetPainter.cpp ('k') | Source/core/paint/ImagePainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698