Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Issue 1999593003: Only decode opaque to premul in DM image (Closed)

Created:
4 years, 7 months ago by scroggo_chromium
Modified:
4 years, 7 months ago
Reviewers:
msarett, scroggo
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/f2c96a2a6fa22c674083db701d15702636f9d5fc

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Don't decode opaque to unpremul, either #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -11 lines) Patch
M dm/DM.cpp View 1 2 3 chunks +4 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (12 generated)
scroggo_chromium
Maybe a more exciting difference here is that we'll reduce the time decoding RAW images. ...
4 years, 7 months ago (2016-05-20 14:52:40 UTC) #3
msarett
On 2016/05/20 14:52:40, scroggo_chromium wrote: > Maybe a more exciting difference here is that we'll ...
4 years, 7 months ago (2016-05-20 15:19:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999593003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999593003/1
4 years, 7 months ago (2016-05-20 15:23:50 UTC) #6
commit-bot: I haz the power
Failed to apply patch for dm/DM.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 7 months ago (2016-05-20 15:41:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999593003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999593003/20001
4 years, 7 months ago (2016-05-20 17:31:50 UTC) #12
scroggo_chromium
FYI: I updated this to stop decoding kOpaque to both kPremul and kUnpremul, for an ...
4 years, 7 months ago (2016-05-20 17:44:47 UTC) #15
scroggo_chromium
On 2016/05/20 17:44:47, scroggo_chromium wrote: > FYI: I updated this to stop decoding kOpaque to ...
4 years, 7 months ago (2016-05-20 17:50:14 UTC) #16
msarett
On 2016/05/20 17:50:14, scroggo_chromium wrote: > On 2016/05/20 17:44:47, scroggo_chromium wrote: > > FYI: I ...
4 years, 7 months ago (2016-05-20 17:51:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999593003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999593003/40001
4 years, 7 months ago (2016-05-20 17:54:26 UTC) #20
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 18:08:31 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/f2c96a2a6fa22c674083db701d15702636f9d5fc

Powered by Google App Engine
This is Rietveld 408576698