Use SkPictureRecorder::endRecordingAsPicture() instead of endRecording()