skia2/include
Mike Reed f3ebd312f2 add getAlphaf() to pixmap/bitmap
Convenient for just extracting alpha (and more efficient than getColor()) and
works for super-normal formats w/o loss of precision.

Somewhat inspired by examining multiple chrome call-sites for getColor(), where
chrome only really cared about the alpha. This new method runs about twice
as fast as getColor() for the simple cases (i.e. no colorspace xforms), and
even faster in the complex cases (since retrieving alpha doesn't care about
colorspaces).

Bug: skia:
Change-Id: I7cd5a2c7f78de781aaa69dd1aa0dba3c532fcb73
Reviewed-on: https://skia-review.googlesource.com/155606
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2018-09-20 19:25:22 +00:00
..
android Alternate between two SkBitmaps in SkAnimatedImage 2018-05-23 20:49:42 +00:00
atlastext include: whitespace changes for clang-format 2018-09-19 14:54:57 +00:00
c C API: document sk_matrix_t 2017-03-21 18:04:34 +00:00
codec Reland "Switch SkCodec to use skcms plus fixes"" 2018-08-27 16:16:14 +00:00
config remove unused parts of SkTypes.h 2018-06-08 23:53:57 +00:00
core add getAlphaf() to pixmap/bitmap 2018-09-20 19:25:22 +00:00
docs SkDocument: Factories now located in SkPDFDocument.h and SkXPSDocument.h 2018-09-20 18:21:07 +00:00
effects converted overdraw effect to new FP system 2018-09-04 13:37:25 +00:00
encode Move SkNoncopyable to include/private. 2018-07-17 21:39:51 +00:00
gpu Remove (unused) GrBlend.cpp, and some GrColor helpers 2018-09-20 15:25:17 +00:00
pathops fixup winding contours 2018-08-17 14:01:51 +00:00
ports SkImageGeneratorCG.h to only expose factory method. 2018-09-19 21:20:35 +00:00
private Remove SkAutoTCallIProc. 2018-09-20 17:42:02 +00:00
svg Add a SkWStream-based SkSVGCanvas factory 2017-09-19 20:33:19 +00:00
utils remove SkRandom::next64() 2018-09-06 12:46:46 +00:00