Index: bench/MatrixBench.cpp |
diff --git a/bench/MatrixBench.cpp b/bench/MatrixBench.cpp |
index c2d68b5b85d9bdd22422b34e2faa4f7700e68659..4b8cf0223ed280c8f0124b6c8bc037e51e9ed538 100644 |
--- a/bench/MatrixBench.cpp |
+++ b/bench/MatrixBench.cpp |
@@ -74,7 +74,7 @@ private: |
class ScaleMatrixBench : public MatrixBench { |
public: |
ScaleMatrixBench() : INHERITED("scale") { |
- fSX = fSY = SkFloatToScalar(1.5f); |
+ fSX = fSY = 1.5f; |
fM0.reset(); |
fM1.setScale(fSX, fSY); |
fM2.setTranslate(fSX, fSY); |
@@ -383,17 +383,17 @@ public: |
fMatrix.reset(); |
fIteration = 0; |
if (flags & kScale_Flag) { |
- fMatrix.postScale(SkFloatToScalar(1.5f), SkFloatToScalar(2.5f)); |
+ fMatrix.postScale(1.5f, 2.5f); |
} |
if (flags & kTranslate_Flag) { |
- fMatrix.postTranslate(SkFloatToScalar(1.5f), SkFloatToScalar(2.5f)); |
+ fMatrix.postTranslate(1.5f, 2.5f); |
} |
if (flags & kRotate_Flag) { |
- fMatrix.postRotate(SkFloatToScalar(45.0f)); |
+ fMatrix.postRotate(45.0f); |
} |
if (flags & kPerspective_Flag) { |
- fMatrix.setPerspX(SkFloatToScalar(1.5f)); |
- fMatrix.setPerspY(SkFloatToScalar(2.5f)); |
+ fMatrix.setPerspX(1.5f); |
+ fMatrix.setPerspY(2.5f); |
} |
if (0 == (flags & kUncachedTypeMask_Flag)) { |
fMatrix.getType(); |