skia2/dm
scroggo 9366aff1fa Stop creating CodecSrcs with unused scale
Only JPEG and WEBP support native scaling, so only create a CodecSrc
with a scale for those types.

If I run

    dm --src image --images resources

this cuts down the number of Srcs from 11063 to 8032. All of these
trimmed Srcs would have failed quickly for each Sink (3 Sinks with the
above flags), but this will avoid creating them.

It drops the runtime on my mac from 13.2s to 11.4s, for about a 14%
speedup.

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

Review-Url: https://codereview.chromium.org/1999103002
2016-05-20 08:38:54 -07:00
..
DM.cpp Stop creating CodecSrcs with unused scale 2016-05-20 08:38:54 -07:00
DMGpuSupport.h Rename lots of things from 'sRGB' to 'GammaCorrect', where appropriate 2016-04-13 13:10:14 -07:00
DMJsonWriter.cpp Revert of SK_DECLARE_STATIC_MUTEX -> static SkMutex (patchset #1 id:1 of https://codereview.chromium.org/1948193002/ ) 2016-05-04 17:12:46 -07:00
DMJsonWriter.h Add gamma_correct option field to dm.json 2016-02-29 07:38:01 -08:00
DMSrcSink.cpp Delete SkBitmapRegionCanvas 2016-05-18 06:23:57 -07:00
DMSrcSink.h Delete SkBitmapRegionCanvas 2016-05-18 06:23:57 -07:00
DMSrcSinkAndroid.cpp Simplify linkages to Android framework internals 2015-10-26 07:21:32 -07:00
DMSrcSinkAndroid.h DM: this must have been missing from the previous CL 2016-02-08 14:30:25 -08:00