skia2/include
scroggo c5560bef14 Support decoding opaque to *premul
If a client requests unpremul or premul from an opaque SkCodec,
support it. The opaque image can be treated as any of them, though
it will be less efficient to draw than if the client had used
opaque.

Change the filling code (i.e. for incomplete images) to base its color on
the source alpha type. Prior to adding the support to decode opaque to
any, it was fine to use either source or dest (which would have yielded
the same result). If the client requests non-opaque, we do not want this
to switch the fill value from black to transparent. This also allows
simplifying the signatures for getFillValue and onGetFillValue.

In CodexTest, expect the same result when decoding opaque to *premul,
and compare to the opaque version.

BUG=skia:4616
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1641273003

Review URL: https://codereview.chromium.org/1641273003
2016-02-03 09:42:42 -08:00
..
android Move SkBitmapRegionDecoder to include/android and src/android 2015-11-13 06:11:09 -08:00
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
c Documentation: C API comments 2015-09-01 10:45:09 -07:00
client/android Revert of Add gpu implementation of SkAvoidXfermode (patchset #10 id:170001 of https://codereview.chromium.org/1658623002/ ) 2016-02-03 06:42:16 -08:00
codec Support decoding opaque to *premul 2016-02-03 09:42:42 -08:00
config Consolidate SK_CRASH and sk_throw into SK_ABORT 2016-01-29 08:51:04 -08:00
core Fix for rounded-rect clips with filters. 2016-02-02 18:44:16 -08:00
device/xps CMake, include/: changes to make fiddle 2.0 better 2015-12-01 09:02:49 -08:00
effects Move SkColorMatrixFilter implementation to core. 2016-02-01 12:09:07 -08:00
gpu added support for PLS path rendering 2016-01-30 09:59:10 -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
ports Add option to specify a font collection when creating a 2016-02-03 07:22:52 -08:00
private Revert of Move Google3-specific stack limitation logic to template classes. Remove #ifdefs in other files. (patchset #2 id:50001 of https://codereview.chromium.org/1656143003/ ) 2016-02-02 16:01:39 -08:00
svg move SkTDict and SkTSearch into private 2016-01-03 18:36:05 -08:00
utils SK_SUPPORT_LEGACY_DRAWFLTER typo 2016-01-25 06:23:54 -08:00
views SampleApp: Remove SkWindow::setColorType 2016-01-18 01:18:35 -08:00
xml Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00