Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index 39bd6c88a1d60313e3fc64d285b5103d27260ad7..b324cc46d112aab1d6c5c845a2f4db83c27e3fc1 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -30,8 +30,8 @@ typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
namespace { |
-const SkScalar gOneThird = SkScalarInvert(SkIntToScalar(3)); |
-const SkScalar gTwoThirds = SkScalarDiv(SkIntToScalar(2), SkIntToScalar(3)); |
+const SkScalar gOneThird = SkIntToScalar(1) / 3; |
+const SkScalar gTwoThirds = SkIntToScalar(2) / 3; |
const SkScalar gOneHalf = 0.5f; |
const SkScalar gOneQuarter = 0.25f; |