| Index: third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
|
| index 0e71266e2f7be0777916939fcc4c0fb8ef29b146..db79e6d10722df228abd5400b9e1726e3b24d6ad 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
|
| @@ -62,4 +62,10 @@ sk_sp<PaintRecord> PaintRecordBuilder::endRecording() {
|
| return m_context->endRecording();
|
| }
|
|
|
| +sk_sp<SkDrawable> PaintRecordBuilder::endRecordingAsDrawable() {
|
| + m_context->beginRecording(m_bounds);
|
| + m_paintController->commitNewDisplayItems();
|
| + m_paintController->paintArtifact().replay(*m_context);
|
| + return m_context->endRecordingAsDrawable();
|
| +}
|
| } // namespace blink
|
|
|