DescriptionTwo 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
Committed: https://skia.googlesource.com/skia/+/c8be09aaf2bbfa004c574553fc9d194ac7f1ce1a
Patch Set 1 #
Total comments: 2
Messages
Total messages: 16 (8 generated)
|