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

Issue 1626463002: Refactor swizzle names and types. (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

Refactor swizzle names and types. - Plant a flag to say "pretend all the inputs are RGBA". This is how libpng thinks. This is the opposite of what the implementation had been doing, so I've rearranged everything to reflect the new orientation. - Rewrite the names to be less mysterious looking. No more Xs. - Make the src type uniformly const void*, to allow for 888 (RGB) srcs. This should be performance and pixel neutral. (Please revert if it's not.) BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1626463002 CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/8bf7b79cf9776b4edb3f6810e5ab8c80c49d3480

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -100 lines) Patch
M bench/SwizzleBench.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 4 chunks +6 lines, -6 lines 0 comments Download
M src/core/SkOpts.h View 1 chunk +5 lines, -4 lines 0 comments Download
M src/core/SkOpts.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/opts/SkOpts_neon.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/opts/SkOpts_ssse3.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/opts/SkSwizzler_opts.h View 6 chunks +73 lines, -69 lines 3 comments Download
M tests/SwizzlerTest.cpp View 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1626463002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1626463002/1
4 years, 11 months ago (2016-01-22 15:13:58 UTC) #4
mtklein_C
4 years, 11 months ago (2016-01-22 15:25:36 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-22 15:28:50 UTC) #9
msarett
LGTM Thanks for doing the refactor! I don't envy you. https://codereview.chromium.org/1626463002/diff/1/src/opts/SkSwizzler_opts.h File src/opts/SkSwizzler_opts.h (left): https://codereview.chromium.org/1626463002/diff/1/src/opts/SkSwizzler_opts.h#oldcode15 ...
4 years, 11 months ago (2016-01-22 15:35:08 UTC) #10
mtklein
https://codereview.chromium.org/1626463002/diff/1/src/opts/SkSwizzler_opts.h File src/opts/SkSwizzler_opts.h (left): https://codereview.chromium.org/1626463002/diff/1/src/opts/SkSwizzler_opts.h#oldcode15 src/opts/SkSwizzler_opts.h:15: // These variable names in these functions just pretend ...
4 years, 11 months ago (2016-01-22 15:39:52 UTC) #12
msarett
https://codereview.chromium.org/1626463002/diff/1/src/opts/SkSwizzler_opts.h File src/opts/SkSwizzler_opts.h (left): https://codereview.chromium.org/1626463002/diff/1/src/opts/SkSwizzler_opts.h#oldcode15 src/opts/SkSwizzler_opts.h:15: // These variable names in these functions just pretend ...
4 years, 11 months ago (2016-01-22 15:40:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1626463002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1626463002/1
4 years, 11 months ago (2016-01-22 15:42:09 UTC) #15
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 15:42:55 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/8bf7b79cf9776b4edb3f6810e5ab8c80c49d3480

Powered by Google App Engine
This is Rietveld 408576698