Deal gracefully with null {GraphicsContext,SkPictureBuilder}.endRecording() results.
GraphicsContext supports the notion of being "disabled". Currently this is only
used by the rasterize_and_record_micro benchmark. In this mode, both
GraphicsContext.endRecording() and SkPictureBuilder.endRecording() can
return null and our code is not currently robust against this result.
Update callsites to deal with a null picture, and add documentation to
GraphicsContext and SkPictureBuilder to make this clearer.
BUG=
598358
Committed:
https://crrev.com/825563e67be0a696f375fce91e6016cabcf0a673
Cr-Commit-Position: refs/heads/master@{#383971}