This brings us down to about 10 calls to malloc per picture.
No measurable change in bench_record or bench_pictures.
BUG=
R=reed@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/
132693009
git-svn-id: http://skia.googlecode.com/svn/trunk@13136
2bbb7eff-a529-9590-31e7-
b0007b416f81
fPointWrites = fRectWrites = fTextWrites = 0;
#endif
- fRestoreOffsetStack.setReserve(32);
-
fBitmapHeap = SkNEW(SkBitmapHeap);
fFlattenableHeap.setBitmapStorage(fBitmapHeap);
fPathHeap = NULL; // lazy allocate