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

Unified Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp

Issue 2755183002: Change drawPicture calls to playback to avoid culling (Closed)
Patch Set: Address review comments 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
Index: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
index 3abcd1efe80bec62ffc7c065851f86cdb26c1691..cb9ce220648923bdbd243b3dd9e1461538967630 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
@@ -99,14 +99,14 @@ void RecordingImageBufferSurface::fallBackToRasterCanvas(
m_fallbackSurface->setImageBuffer(m_imageBuffer);
if (m_previousFrame) {
- m_fallbackSurface->canvas()->drawPicture(m_previousFrame);
+ m_fallbackSurface->canvas()->PlaybackPaintRecord(m_previousFrame);
m_previousFrame.reset();
}
if (m_currentFrame) {
sk_sp<PaintRecord> record = m_currentFrame->finishRecordingAsPicture();
if (record)
- m_fallbackSurface->canvas()->drawPicture(record);
+ m_fallbackSurface->canvas()->PlaybackPaintRecord(record);
m_currentFrame.reset();
}

Powered by Google App Engine
This is Rietveld 408576698