Home | History | Annotate | Download | only in gm

Lines Matching defs:perspective

151 // Based on the original gradient slide, but with perspective applied to the
183 // apply an increasing y perspective as we move to the right
184 SkMatrix perspective;
185 perspective.setIdentity();
186 perspective.setPerspY(SkScalarDiv(SkIntToScalar((unsigned) i+1),
188 perspective.setSkewX(SkScalarDiv(SkIntToScalar((unsigned) i+1),
191 shader->setLocalMatrix(perspective);
207 // Based on the original gradient slide, but with perspective applied to
218 SkMatrix perspective;
219 perspective.setIdentity();
220 perspective.setPerspY(SkScalarDiv(SK_Scalar1, SkIntToScalar(1000)));
221 perspective.setSkewX(SkScalarDiv(SkIntToScalar(8), SkIntToScalar(25)));
222 canvas->concat(perspective);