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

Issue 1616753003: Use fActualProc to choose fFastProc or fSlowProc in SkSwizzler (Closed)

Created:
4 years, 11 months ago by msarett
Modified:
4 years, 11 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

Use fActualProc to choose fFastProc or fSlowProc in SkSwizzler (1) We will now (correctly) choose fFastProc if the client calls setSampleX(1). (2) The logic to choose between fFastProc and fSlowProc is now performed once, rather than every time we call swizzle(). (3) This will be easier to extend when we add fFastSampleProcs for different sample sizes. This comes from Leon's suggestion in: https://codereview.chromium.org/1582083005 BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1616753003 Committed: https://skia.googlesource.com/skia/+/19032f72165f5c6eab5c2149dae98905f41e3943

Patch Set 1 #

Total comments: 2

Patch Set 2 : Response to comment #

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

Depends on Patchset:

Messages

Total messages: 10 (5 generated)
msarett
4 years, 11 months ago (2016-01-21 16:46:08 UTC) #3
scroggo
lgtm https://codereview.chromium.org/1616753003/diff/1/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1616753003/diff/1/src/codec/SkSwizzler.cpp#newcode798 src/codec/SkSwizzler.cpp:798: if (1 == fSampleX) { You could simplify ...
4 years, 11 months ago (2016-01-21 17:24:59 UTC) #4
msarett
https://codereview.chromium.org/1616753003/diff/1/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp (right): https://codereview.chromium.org/1616753003/diff/1/src/codec/SkSwizzler.cpp#newcode798 src/codec/SkSwizzler.cpp:798: if (1 == fSampleX) { On 2016/01/21 17:24:59, scroggo ...
4 years, 11 months ago (2016-01-21 17:45:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616753003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616753003/20001
4 years, 11 months ago (2016-01-21 17:46:19 UTC) #8
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 17:59:40 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/19032f72165f5c6eab5c2149dae98905f41e3943

Powered by Google App Engine
This is Rietveld 408576698