commit | f2c96a2a6fa22c674083db701d15702636f9d5fc | [log] [tgz] |
---|---|---|
author | scroggo <scroggo@chromium.org> | Fri May 20 11:08:27 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri May 20 11:08:27 2016 -0700 |
tree | 3a81bd2048cb558a033f51961db47501afb38c8d | |
parent | e76ca8b9c25672be79b670514a7fe0bceadd35e6 [diff] |
Only decode opaque to premul in DM image Previously, we would test decoding an opaque SkCodec to all three: kUnpremul, kPremul, kOpaque The image should look the same in all three cases. We already test for that in CodecTest [1], where we require that the result matches exactly. CodecTest runs on a smaller set of images, but it covers a variety of opaque images. No need to test on all opaque images. Running locally on my Mac laptop, the following command: dm --src image --images resources/ dropped from: 5932 srcs 11.2s to: 3544 srcs 6.69s for a 40% speedup. BUG=skia:5307 [1] https://skia.googlesource.com/skia/+/master/tests/CodecTest.cpp#119 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1999593003 Review-Url: https://codereview.chromium.org/1999593003