DescriptionUse 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 #
Depends on Patchset: Messages
Total messages: 10 (5 generated)
|