commit | 897c9937636c2287bb217c76da9a56afb43050ac | [log] [tgz] |
---|---|---|
author | jvanverth <jvanverth@google.com> | Fri Nov 20 13:32:32 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Fri Nov 20 13:32:32 2015 -0800 |
tree | e01a34036214fa7843392e0d7166c4d2eda6f1fc | |
parent | 179a8f5f7feab052e24596d0d04ab5cf2ccab5e0 [diff] |
Pack and align SkStrokeRec to 4-byte boundary. The new key for the distance field path cache will contain an SkStrokeRec. This change guarantees that we don't have any hidden padding that has garbage values, thereby preventing apparently equal keys from hashing to two different values. This also has the nice effect of reducing the size of SkStrokeRec from 24 bytes to 16 bytes. Review URL: https://codereview.chromium.org/1465773003