diff options
author | mtklein <mtklein@chromium.org> | 2016-02-21 10:54:19 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-21 10:54:19 -0800 |
commit | 7c249e531900929c2fe2cdde76619fa6d2538c49 (patch) | |
tree | c6473872ddc5eaac740016ca30d469a7afe44b5d /gm | |
parent | d98ef6377269e3596423225ab922301ed40529a0 (diff) |
SkNx: kth<...>() -> [...]
Just some syntax cleanup. No real change: kth<...>() was calling [...] already.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1714363002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/1714363002
Diffstat (limited to 'gm')
-rw-r--r-- | gm/showmiplevels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/showmiplevels.cpp b/gm/showmiplevels.cpp index 27d47e564d..d3462b7803 100644 --- a/gm/showmiplevels.cpp +++ b/gm/showmiplevels.cpp @@ -66,8 +66,8 @@ static SkBitmap make_bitmap3(int w, int h) { SkScalar s = SkIntToScalar(w); Sk4f p(s, -s, -s, s); Sk4f d(5); - while (p.kth<1>() < s) { - canvas.drawLine(p.kth<0>(),p.kth<1>(), p.kth<2>(), p.kth<3>(), paint); + while (p[1] < s) { + canvas.drawLine(p[0],p[1], p[2], p[3], paint); p = p + d; } return bm; |