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

Unified Diff: Source/core/paint/VideoPainter.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: 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
Index: Source/core/paint/VideoPainter.cpp
diff --git a/Source/core/paint/VideoPainter.cpp b/Source/core/paint/VideoPainter.cpp
index 85d7d9d8f11ec98bebcc6b9a77233a2469cf7cae..8624fe930e40f5d7a336f26c1b8f2e04bf47c5aa 100644
--- a/Source/core/paint/VideoPainter.cpp
+++ b/Source/core/paint/VideoPainter.cpp
@@ -29,12 +29,12 @@ void VideoPainter::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
rect.moveBy(paintOffset);
GraphicsContext* context = paintInfo.context;
- if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, m_layoutVideo, paintInfo.phase))
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, m_layoutVideo, paintInfo.phase, paintOffset))
return;
LayoutRect contentRect = m_layoutVideo.contentBoxRect();
contentRect.moveBy(paintOffset);
- LayoutObjectDrawingRecorder drawingRecorder(*context, m_layoutVideo, paintInfo.phase, contentRect);
+ LayoutObjectDrawingRecorder drawingRecorder(*context, m_layoutVideo, paintInfo.phase, contentRect, paintOffset);
bool clip = !contentRect.contains(rect);
if (clip) {

Powered by Google App Engine
This is Rietveld 408576698