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

Issue 1822363002: Publicly expose one accelerated swizzle. (Closed)

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

Description

Publicly expose one accelerated swizzle. SkOpts is intentionally internal, but we want to give Chrome access to those pieces that would seriously benefit them. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1822363002 Committed: https://skia.googlesource.com/skia/+/734351d2555024a679c4e4f5e13e8be2329803d2

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add test, fix bugs from review #

Total comments: 4

Patch Set 3 : mtklein second review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
M gyp/core.gypi View 1 2 chunks +2 lines, -0 lines 0 comments Download
A include/core/SkSwizzle.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
A src/core/SkSwizzle.cpp View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M tests/SwizzlerTest.cpp View 1 2 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
tomhudson
reed@: public API change Matt's seen huge speedups on some platforms with SIMD; while I'm ...
4 years, 9 months ago (2016-03-23 17:00:34 UTC) #3
mtklein
Maybe you should write a test. https://codereview.chromium.org/1822363002/diff/1/include/core/SkSwizzle.h File include/core/SkSwizzle.h (right): https://codereview.chromium.org/1822363002/diff/1/include/core/SkSwizzle.h#newcode12 include/core/SkSwizzle.h:12: void SkSwizzleRGBAToBGRA(uint32_t* src, ...
4 years, 9 months ago (2016-03-23 17:02:35 UTC) #5
reed1
https://codereview.chromium.org/1822363002/diff/1/include/core/SkSwizzle.h File include/core/SkSwizzle.h (right): https://codereview.chromium.org/1822363002/diff/1/include/core/SkSwizzle.h#newcode12 include/core/SkSwizzle.h:12: void SkSwizzleRGBAToBGRA(uint32_t* src, void* dest, int count); // Swap ...
4 years, 9 months ago (2016-03-23 17:03:23 UTC) #6
mtklein
On 2016/03/23 17:03:23, reed1 wrote: > https://codereview.chromium.org/1822363002/diff/1/include/core/SkSwizzle.h > File include/core/SkSwizzle.h (right): > > https://codereview.chromium.org/1822363002/diff/1/include/core/SkSwizzle.h#newcode12 > ...
4 years, 9 months ago (2016-03-23 17:07:29 UTC) #7
tomhudson
Renamed to SkSwapRB(), reordered and retyped parameters, added test to SwizzlerTest. https://codereview.chromium.org/1822363002/diff/1/include/core/SkSwizzle.h File include/core/SkSwizzle.h (right): ...
4 years, 9 months ago (2016-03-23 17:25:50 UTC) #8
reed1
lgtm api lgtm
4 years, 9 months ago (2016-03-23 17:34:17 UTC) #9
mtklein
https://codereview.chromium.org/1822363002/diff/20001/src/core/SkSwizzle.cpp File src/core/SkSwizzle.cpp (right): https://codereview.chromium.org/1822363002/diff/20001/src/core/SkSwizzle.cpp#newcode13 src/core/SkSwizzle.cpp:13: SkOpts::RGBA_to_BGRA(dest, src, count); I think we usually use a ...
4 years, 9 months ago (2016-03-23 17:35:13 UTC) #10
tomhudson
https://codereview.chromium.org/1822363002/diff/20001/src/core/SkSwizzle.cpp File src/core/SkSwizzle.cpp (right): https://codereview.chromium.org/1822363002/diff/20001/src/core/SkSwizzle.cpp#newcode13 src/core/SkSwizzle.cpp:13: SkOpts::RGBA_to_BGRA(dest, src, count); On 2016/03/23 17:35:13, mtklein wrote: > ...
4 years, 9 months ago (2016-03-23 17:38:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822363002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822363002/40001
4 years, 9 months ago (2016-03-23 17:39:47 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-23 17:51:24 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/734351d2555024a679c4e4f5e13e8be2329803d2

Powered by Google App Engine
This is Rietveld 408576698