skia2/src
mtklein bc41538985 Deparameterize SkVarAlloc.
SkRecord performance is not sensitive to these values, so we can cut some
storage.  This rearranges the space-remaining logic to use a count of bytes
left rather than a pointer to the end, cutting memory usage a little more.

An SkVarAlloc used to weigh 20 or 32 bytes which now becomes 16 or 24.

I think if I think about it a bit more I can trim off that Block* too,
getting us to 12 or 16 bytes.

Because we now just always grow by doubling, this CL switches from storing
fSmallest to its log base 2.  This has the nice effect of never having to worry
about it overflowing, and means we can probably squeeze it down into a byte
if we want, even 6 bits.

BUG=skia:

Review URL: https://codereview.chromium.org/721313002
2014-11-13 10:51:39 -08:00
..
animator stop calling SkCanvas::getDevice 2014-06-30 09:05:34 -07:00
c move c api into include 2014-10-24 11:16:19 -07:00
core Deparameterize SkVarAlloc. 2014-11-13 10:51:39 -08:00
device/xps Rename onCreateDevice -> onCreateCompatibleDevice 2014-11-13 08:33:37 -08:00
doc Simplify canvas calls in SkDocument_PDF 2014-11-10 14:22:15 -08:00
effects Move GrInvariantOutput out of GrProcessor and into its own class. 2014-11-12 08:35:25 -08:00
fonts Remove SK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER. 2014-11-10 13:29:33 -08:00
gpu Rename onCreateDevice -> onCreateCompatibleDevice 2014-11-13 08:33:37 -08:00
image Get gpudft support working in dm, gm, nanobench and bench_pictures 2014-11-07 07:12:46 -08:00
images Add tests (and fix!) for known bad ICO files. 2014-11-10 13:12:25 -08:00
lazy Add SkIRect bounds() convenience method to SkImageInfo and SkBitmap. 2014-10-24 12:54:53 -07:00
opts Fix race in supports_simd(). 2014-10-13 12:48:16 -07:00
pathops These tests stress pathops by describing the union of circle-like paths that have tiny line segments embedded and double back to create near-coincident conditions. 2014-11-13 06:58:52 -08:00
pdf Rename onCreateDevice -> onCreateCompatibleDevice 2014-11-13 08:33:37 -08:00
pipe Revert of Override SkCanvas::drawImage() in SkDeferredCanvas and SkGPipe (patchset #8 id:140001 of https://codereview.chromium.org/613673005/) 2014-11-04 13:21:41 -08:00
ports Remove SK_USE_SCALED_FONTMETRICS. 2014-11-12 08:29:16 -08:00
sfnt SkData can allocate room for its contents in the same block 2014-09-11 08:42:36 -07:00
svg Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
utils Rename onCreateDevice -> onCreateCompatibleDevice 2014-11-13 08:33:37 -08:00
views move SkTextBox into utils 2014-11-03 14:55:40 -08:00
xml remove SK_SCALAR_IS_[FLOAT,FIXED] and assume floats 2013-12-17 16:44:46 +00:00