From 25583a381252921f2e9d0dc4a30c3834ef677530 Mon Sep 17 00:00:00 2001 From: "tomhudson@google.com" Date: Mon, 6 Jun 2011 17:55:11 +0000 Subject: [PATCH] Make scalar benchmarks compile and run under SKIA_SCALAR=fixed as well as float. git-svn-id: http://skia.googlecode.com/svn/trunk@1516 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/ScalarBench.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/ScalarBench.cpp b/bench/ScalarBench.cpp index 639d10d936..29fe5c4f3d 100644 --- a/bench/ScalarBench.cpp +++ b/bench/ScalarBench.cpp @@ -1,4 +1,5 @@ #include "SkBenchmark.h" +#include "SkFloatBits.h" #include "SkRandom.h" #include "SkString.h" @@ -85,7 +86,7 @@ protected: } private: static const int32_t kPersp1Int = 0x3f800000; - float fArray[9]; + SkScalar fArray[9]; typedef ScalarBench INHERITED; };