DescriptionMake SkROBuffer::Iter::size() work when exhausted
According to the documentation, this method will return 0 when the Iter
is exhausted. Prior to this CL, it crashes instead.
Prevent a crash with a null fHead, and add a test to verify the
behavior.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1574603002
Committed: https://skia.googlesource.com/skia/+/b512aaa5c808bcb1336c147682657882ee54e652
Patch Set 1 #
Messages
Total messages: 12 (6 generated)
|