DescriptionFully init SkPaints.
On 32-bit Linux, the current SkPaint structure is 60 bytes long.
However, the last two bytes of that are just padding and the current
SkPaint constructor never modifies them.
But, when calling SkPaint::operator==, the memcmp is performed over
the whole structure, including the random padding bytes and will often
fail. For example:
SkPaint a, b;
if (a == b) { ...
is undefined without this patch.
Patch Set 1 #
MessagesTotal messages: 1
|