skia2/include
Leon Scroggins III e643a9ef52 SkCodec: Always use 0 for filling
This is a behavior change and a simplification.

When an image is incomplete or subset, we fill the remaining/all rows
with the fill color. A virtual method chose the fill color. Here were
the implementations:
- SkGifCodec:
Use transparent. This was changed previously to match Chromium.
- SkPngCodec/SkBmpStandardCodec:
Use the first color in the color table. This made sense when we had to
support kIndex_8, when we had to use an index from the color table.
Using that color for other types ensured that the image looked the same
in e.g. kN32 as kIndex_8. Removing this arbitrary choice simplifies the
code and moves the behavior toward Chromium's.
- SkCodec (default):
Use black for opaque images and transparent for images with alpha. A
theoretical advantage to this decision was that an incomplete image
would look the same in k565 and kN32. I don't think this is a good
enough reason to behave differently from Chromium.

Consolidate them all to just use 0. This results in transparent where
that is something we can specify. For 565 and Gray, this results in
black.

Only change to include headers is the removal of protected methods.
TBR=hcm@google.com

Change-Id: I9a7224b4e91b5c4988f3a87381653e99e40e10a5
Reviewed-on: https://skia-review.googlesource.com/145378
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2018-08-13 16:56:19 +00:00
..
android Alternate between two SkBitmaps in SkAnimatedImage 2018-05-23 20:49:42 +00:00
atlastext Move op memory storage to GrContext (take 2) 2018-06-19 19:51:20 +00:00
c C API: document sk_matrix_t 2017-03-21 18:04:34 +00:00
codec SkCodec: Always use 0 for filling 2018-08-13 16:56:19 +00:00
config remove unused parts of SkTypes.h 2018-06-08 23:53:57 +00:00
core refresh generated includes 2018-08-10 17:55:28 +00:00
effects remove unimplemented headers 2018-07-20 16:19:47 +00:00
encode Move SkNoncopyable to include/private. 2018-07-17 21:39:51 +00:00
gpu Add max_fragment_uniform_vectors_32 workaround 2018-08-09 21:13:16 +00:00
pathops Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
ports Expose public factories for platform decoders 2018-06-26 17:30:52 +00:00
private port most SkAtomic<T> to std::atomic<T> 2018-08-09 23:40:31 +00:00
svg Add a SkWStream-based SkSVGCanvas factory 2017-09-19 20:33:19 +00:00
utils Move SkNoncopyable to include/private. 2018-07-17 21:39:51 +00:00