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

Issue 1665583002: Handle gray alpha conversions in SkSwizzler (Closed)

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

Description

Handle gray alpha conversions in SkSwizzler Nothing fancy here. By doing the entire conversion ourselves, we only need to make one conversion pass over each row. Additionally, we optimize the premultiply since we know each color component of the pixel is identical. This will also enable us to follow up with platform specific optimizations. PNG Decode Time Nexus 6P (for a test set of GrayAlpha encoded PNGs) Regular Unpremul 0.95x Zero Init Unpremul 0.94x Regular Premul 0.91x Zero Init Premul 0.90x BUG=skia:4767 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1665583002 Committed: https://skia.googlesource.com/skia/+/93e613d6bdea05d96e232ed261d7bf886c91bb8e

Patch Set 1 #

Total comments: 8

Patch Set 2 : Response to comments #

Patch Set 3 : Compile in Debug mode :) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -9 lines) Patch
M src/codec/SkPngCodec.cpp View 1 2 4 chunks +24 lines, -9 lines 0 comments Download
M src/codec/SkSwizzler.h View 3 chunks +6 lines, -0 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 3 chunks +68 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (10 generated)
msarett
4 years, 10 months ago (2016-02-02 23:39:00 UTC) #5
scroggo
lgtm https://codereview.chromium.org/1665583002/diff/1/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/1665583002/diff/1/src/codec/SkPngCodec.cpp#newcode388 src/codec/SkPngCodec.cpp:388: // srcColorType was determined in read_header() which determined ...
4 years, 10 months ago (2016-02-03 16:11:33 UTC) #6
msarett
https://codereview.chromium.org/1665583002/diff/1/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/1665583002/diff/1/src/codec/SkPngCodec.cpp#newcode388 src/codec/SkPngCodec.cpp:388: // srcColorType was determined in read_header() which determined png ...
4 years, 10 months ago (2016-02-03 17:21:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1665583002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1665583002/20001
4 years, 10 months ago (2016-02-03 18:16:18 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/5094)
4 years, 10 months ago (2016-02-03 18:17:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1665583002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1665583002/40001
4 years, 10 months ago (2016-02-03 18:19:59 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 18:44:49 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/93e613d6bdea05d96e232ed261d7bf886c91bb8e

Powered by Google App Engine
This is Rietveld 408576698