aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/Sk4fBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/Sk4fBench.cpp')
-rw-r--r--bench/Sk4fBench.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/bench/Sk4fBench.cpp b/bench/Sk4fBench.cpp
index 02ac14591d..b2f2b4a58e 100644
--- a/bench/Sk4fBench.cpp
+++ b/bench/Sk4fBench.cpp
@@ -62,10 +62,7 @@ struct Sk4fGradientBench : public Benchmark {
c = b + dcdx,
d = c + dcdx;
for (size_t i = 0; i < SK_ARRAY_COUNT(fDevice); i += 4) {
- a.toBytes((uint8_t*)(fDevice+i+0));
- b.toBytes((uint8_t*)(fDevice+i+1));
- c.toBytes((uint8_t*)(fDevice+i+2));
- d.toBytes((uint8_t*)(fDevice+i+3));
+ Sk4f::ToBytes((uint8_t*)(fDevice+i), a, b, c, d);
a = a + dcdx4;
b = b + dcdx4;
c = c + dcdx4;