Check vertex allocation in PathStencilCoverOp

`GrGLBuffer::GrGLBuffer` can fail to generate a buffer (e.g. out
of memory) but not outright crash. That makes a null object
get passed up through GrMeshDrawTarget::makeVertexWriter which
wraps it. Thus, we want to make sure all calls to makeVertexWriter
check to make sure the underlying buffer is valid. All but this
call did, which caused a null dereference when validating.

Change-Id: I8e2a9a8825b01a7a96dd07e5f11d431ebff764ae
Bug: b:467843949
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1123216
Auto-Submit: Kaylee Lubick <kjlubick@google.com>
Commit-Queue: Kaylee Lubick <kjlubick@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
1 file changed