Index: tools/PictureRenderer.cpp |
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp |
index 93701baed9450637f0e933d5fd32d1c6ecc17a6e..559413f9b9c17e2523050734f13c3c4fef15bd94 100644 |
--- a/tools/PictureRenderer.cpp |
+++ b/tools/PictureRenderer.cpp |
@@ -40,7 +40,7 @@ |
#include "sk_tool_utils.h" |
static inline SkScalar scalar_log2(SkScalar x) { |
- static const SkScalar log2_conversion_factor = SkScalarInvert(SkScalarLog(2)); |
+ static const SkScalar log2_conversion_factor = SkScalarDiv(1, SkScalarLog(2)); |
return SkScalarLog(x) * log2_conversion_factor; |
} |