| 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..f921797026164ff8b99681c24537d1014264917e 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
|
| @@ -258,8 +258,8 @@ void RecordingImageBufferSurface::didDraw(const FloatRect& rect)
|
|
|
| bool RecordingImageBufferSurface::finalizeFrameInternal(FallbackReason* fallbackReason)
|
| {
|
| - ASSERT(!m_fallbackSurface);
|
| - ASSERT(m_currentFrame);
|
| + CHECK(!m_fallbackSurface);
|
| + CHECK(m_currentFrame);
|
| ASSERT(m_currentFrame->getRecordingCanvas());
|
| ASSERT(fallbackReason);
|
| ASSERT(*fallbackReason == FallbackReasonUnknown);
|
| @@ -270,7 +270,8 @@ bool RecordingImageBufferSurface::finalizeFrameInternal(FallbackReason* fallback
|
| m_previousFrame = fromSkSp(m_currentFrame->finishRecordingAsPicture());
|
| initializeCurrentFrame();
|
| }
|
| - return m_currentFrame.get();
|
| + CHECK(m_currentFrame);
|
| + return true;
|
| }
|
|
|
| if (!m_frameWasCleared) {
|
|
|