Created:
16 years, 5 months ago by agl
Modified:
16 years, 5 months ago
Visibility:
Public.
|
Fully 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.
Created: 16 years, 5 months ago
| Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+2 lines, -0 lines) |
Patch |
| M |
src/core/SkPaint.cpp
|
View
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 1
|
16 years, 5 months ago
(2009年08月13日 17:52:19 UTC)
#1
|