| Index: third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| index f45e81a75d3db9b52e6e1cce916dd7b10779d53a..fb1cdb20e36464354ea69bd436b89fe047878ecb 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| @@ -88,6 +88,13 @@ DrawingRecorder::~DrawingRecorder() {
|
| }
|
| #endif
|
|
|
| + if (m_context.printing()) {
|
| + sk_sp<SkDrawable> drawable = m_context.endRecordingAsDrawable();
|
| + m_context.getPaintController().createAndAppend<DrawingDisplayItem>(
|
| + m_displayItemClient, m_displayItemType, drawable, m_knownToBeOpaque);
|
| + return;
|
| + }
|
| +
|
| sk_sp<const SkPicture> picture = m_context.endRecording();
|
|
|
| #if DCHECK_IS_ON()
|
|
|