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

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

Issue 2115493004: Make sure RecordingImageBufferSurface's current frame is valid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 e9b89e7fa8ec5881a70570e7158e1f190d053590..1f2940418b174d4ad0c917a4c2810085c9993842 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
@@ -270,6 +270,8 @@ bool RecordingImageBufferSurface::finalizeFrameInternal(FallbackReason* fallback
m_previousFrame = fromSkSp(m_currentFrame->finishRecordingAsPicture());
initializeCurrentFrame();
}
+ if (!m_currentFrame.get())
+ *fallbackReason = FallbackReasonCurrentFrameNull;
Justin Novosad 2016/07/04 14:01:05 I don't think this is right. If m_currentFrame is
xidachen 2016/07/04 14:06:36 I don't have a repro case. But from the histogram
Justin Novosad 2016/07/04 14:16:57 Let's do an experiment on the canary channel then:
xidachen 2016/07/04 14:36:37 Okay. Let's do the experiment then. I remove the c
return m_currentFrame.get();
}
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698