commit | c8be09aaf2bbfa004c574553fc9d194ac7f1ce1a | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Mon Jan 04 18:56:57 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Mon Jan 04 18:56:57 2016 -0800 |
tree | fc0a0fc1f19afcef4be066157abc386048b39f4c | |
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