Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1051)

Unified Diff: bench/MatrixBench.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add flag to expose SkFloatToScalar to chromium Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/ColorFilterBench.cpp ('k') | bench/MatrixConvolutionBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « bench/ColorFilterBench.cpp ('k') | bench/MatrixConvolutionBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698