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

Issue 1571923002: Might as well inline these premultiplies. (Closed)

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

Description

Might as well inline these premultiplies. We're paying quite a bit of function-call overhead per pixel. On one test image we spend 3.5% of our total time in swizzle_rgba_to_n32_premul() and 8.8% of our total time in SkPreMultiplyARGB(). That turns into just 8.8% of our total time in swizzle_rgba_to_n32_premul() after inlining. That's about a 30% speedup. This will make SIMD procs look worse, so it's nice to land this first. BUG=skia:4767 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1571923002 Committed: https://skia.googlesource.com/skia/+/3d00db39c6637607a2a1f184be2f31e4fe17d9ad

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M src/codec/SkSwizzler.cpp View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
mtklein_C
4 years, 11 months ago (2016-01-08 22:52:43 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1571923002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1571923002/1
4 years, 11 months ago (2016-01-08 22:52:57 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-08 23:12:23 UTC) #8
msarett
lgtm
4 years, 11 months ago (2016-01-11 13:53:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1571923002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1571923002/1
4 years, 11 months ago (2016-01-11 13:58:08 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 14:16:30 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/3d00db39c6637607a2a1f184be2f31e4fe17d9ad

Powered by Google App Engine
This is Rietveld 408576698