skia2/include
mtklein cd49541524 For non-opaque SkBitmapDevices, replace malloc-then-zero with calloc.
There seem about a zillion possible ways to slice this.
This adds and uses SkMallocPixelRef::ZeroedPRFactory.
I'm not married to it.

This appears to clear up a hot spot in the benchmark referenced in this bug:
BUG=516426
I'm not confident enough on Windows to declare that definitively yet.

It probably helps all other non-opaque layers too.  Possibly significantly.

So I don't forget, I profiled this:
out/Release/performance_browser_tests.exe  --gtest_filter=TabCapturePerformanceTest.Performance/2 --single-process

No diffs:
https://gold.skia.org/search2?issue=1430593007&unt=true&query=source_type%3Dgm&master=false

TBR=reed@google.com

Review URL: https://codereview.chromium.org/1430593007
2015-11-05 09:46:23 -08:00
..
animator
c Documentation: C API comments 2015-09-01 10:45:09 -07:00
codec Make AndroidOptions const 2015-11-04 04:31:12 -08:00
config remove SkInstCnt 2015-06-26 11:45:03 -07:00
core For non-opaque SkBitmapDevices, replace malloc-then-zero with calloc. 2015-11-05 09:46:23 -08:00
device/xps C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
effects change more effects to only expose factories 2015-10-12 11:10:10 -07:00
gpu Create SDL backed SkOSWindow 2015-11-04 13:41:02 -08:00
images remove SkInstCnt 2015-06-26 11:45:03 -07:00
pathops Revert of Revert of remove SK_SUPPORT_LEGACY_PATHOP_ENUMS (patchset #1 id:1 of https://codereview.chromium.org/1203983003/) 2015-06-26 10:23:07 -07:00
pipe Fixing leaky handling of SkImage in SkDeferredCanvas. 2015-06-02 11:47:45 -07:00
ports Move Mutexy things to private. 2015-09-29 11:47:45 -07:00
private Use SkAutoTExclusive guard in DirectWrite port. 2015-10-23 10:48:26 -07:00
svg Remove SK_OFFSETOF from SkTypes, clean up offsetof usage. 2015-08-25 12:05:55 -07:00
utils Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
views Wire up SDL on Android 2015-11-05 08:35:31 -08:00
xml Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00