aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-03-31 08:17:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-31 08:17:00 -0700
commit0340df5b3698aff1c9540fcdbc3dafd9d5ddb0b0 (patch)
tree0988d6dd9faafdedb7954151838a2467c04f58c2 /bench
parent39383a194622a917dd2ae0c4b43e9c634d61e94a (diff)
back to Sk4f for SkPMColor
#floats BUG=skia: BUG=skia:3592 Review URL: https://codereview.chromium.org/1047823002
Diffstat (limited to 'bench')
-rw-r--r--bench/PMFloatBench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/PMFloatBench.cpp b/bench/PMFloatBench.cpp
index fd0d232d2a..09819e9962 100644
--- a/bench/PMFloatBench.cpp
+++ b/bench/PMFloatBench.cpp
@@ -103,7 +103,7 @@ struct PMFloatGradientBench : public Benchmark {
SkPMColor fDevice[100];
void onDraw(const int loops, SkCanvas*) override {
- Sk4s c0 = SkPMFloat::FromARGB(255, 255, 0, 0),
+ Sk4f c0 = SkPMFloat::FromARGB(255, 255, 0, 0),
c1 = SkPMFloat::FromARGB(255, 0, 0, 255),
dc = c1 - c0,
fx(0.1f),
@@ -112,7 +112,7 @@ struct PMFloatGradientBench : public Benchmark {
dcdx4(dcdx+dcdx+dcdx+dcdx);
for (int n = 0; n < loops; n++) {
- Sk4s a = c0 + dc*fx + Sk4s(0.5f), // The +0.5f lets us call trunc() instead of get().
+ Sk4f a = c0 + dc*fx + Sk4f(0.5f), // The +0.5f lets us call trunc() instead of get().
b = a + dcdx,
c = b + dcdx,
d = c + dcdx;