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

Unified Diff: gm/filltypespersp.cpp

Issue 864713002: remove dead SkPersp macros (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months 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 | « gm/dcshader.cpp ('k') | include/core/SkMatrix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/filltypespersp.cpp
diff --git a/gm/filltypespersp.cpp b/gm/filltypespersp.cpp
index e9cf6a77f13c0d9ce22b38e5d3692ef6c6eb9624..cfdb0150d8774da1fc4ffeffc6363f3f5164c90a 100644
--- a/gm/filltypespersp.cpp
+++ b/gm/filltypespersp.cpp
@@ -98,7 +98,7 @@ protected:
canvas->translate(SkIntToScalar(100), SkIntToScalar(100));
SkMatrix mat;
mat.reset();
- mat.setPerspY(SkScalarToPersp(SK_Scalar1 / 1000));
+ mat.setPerspY(SK_Scalar1 / 1000);
canvas->concat(mat);
canvas->drawPaint(bkgnrd);
canvas->restore();
@@ -106,8 +106,8 @@ protected:
// draw the paths in perspective
SkMatrix persp;
persp.reset();
- persp.setPerspX(SkScalarToPersp(-SK_Scalar1 / 1800));
- persp.setPerspY(SkScalarToPersp(SK_Scalar1 / 500));
+ persp.setPerspX(-SK_Scalar1 / 1800);
+ persp.setPerspY(SK_Scalar1 / 500);
canvas->concat(persp);
canvas->translate(SkIntToScalar(20), SkIntToScalar(20));
« no previous file with comments | « gm/dcshader.cpp ('k') | include/core/SkMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698