Index: gm/glyph_pos.cpp |
diff --git a/gm/glyph_pos.cpp b/gm/glyph_pos.cpp |
index 0da59ac6f9e78534b3ba87c17224a2d6cc59e573..16cdfca11a8a0fda5c66d3b44395a6ae534e566c 100644 |
--- a/gm/glyph_pos.cpp |
+++ b/gm/glyph_pos.cpp |
@@ -82,10 +82,8 @@ |
canvas->scale(3.0f, 3.0f); |
SkMatrix skew; |
skew.setIdentity(); |
- skew.setSkewX(SkScalarDiv(8.0f, |
- 25.0f)); |
- skew.setSkewY(SkScalarDiv(2.0f, |
- 25.0f)); |
+ skew.setSkewX(8.0f / 25.0f); |
+ skew.setSkewY(2.0f / 25.0f); |
canvas->concat(skew); |
drawTestCase(canvas, 1.0f); |
canvas->restore(); |
@@ -95,11 +93,9 @@ |
canvas->save(); |
SkMatrix perspective; |
perspective.setIdentity(); |
- perspective.setPerspX(-SkScalarDiv(SK_Scalar1, 340.0f)); |
- perspective.setSkewX(SkScalarDiv(8.0f, |
- 25.0f)); |
- perspective.setSkewY(SkScalarDiv(2.0f, |
- 25.0f)); |
+ perspective.setPerspX(-SkScalarInvert(340)); |
+ perspective.setSkewX(8.0f / 25.0f); |
+ perspective.setSkewY(2.0f / 25.0f); |
canvas->concat(perspective); |