diff options
author | 2016-01-04 18:56:57 -0800 | |
---|---|---|
committer | 2016-01-04 18:56:57 -0800 | |
commit | c8be09aaf2bbfa004c574553fc9d194ac7f1ce1a (patch) | |
tree | fc0a0fc1f19afcef4be066157abc386048b39f4c /tests/PathOpsCubicIntersectionTest.cpp | |
parent | 29dd813b13719b9d7082a017ce79590f1706dccd (diff) |
Two malloc+bzero -> calloc.
I was profiling DM and noticed a couple spots where we malloc then bzero.
These might as well call calloc instead:
- any time DM itself allocates bitmaps for raster drawing;
- any time Skia allocates memory for a raster SkSurface.
We could use malloc for opaque surfaces, but it seems simpler to always calloc.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1557713003
Review URL: https://codereview.chromium.org/1557713003
Diffstat (limited to 'tests/PathOpsCubicIntersectionTest.cpp')
0 files changed, 0 insertions, 0 deletions