Home | History | Annotate | Download | only in gm

Lines Matching refs:perspective

156 // Based on the original gradient slide, but with perspective applied to the
190 // apply an increasing y perspective as we move to the right
191 SkMatrix perspective;
192 perspective.setIdentity();
193 perspective.setPerspY(SkScalarDiv(SkIntToScalar((unsigned) i+1),
195 perspective.setSkewX(SkScalarDiv(SkIntToScalar((unsigned) i+1),
198 SkShader* shader = gGradMakers[j](pts, gGradData[i], tm, perspective);
214 // Based on the original gradient slide, but with perspective applied to
225 SkMatrix perspective;
226 perspective.setIdentity();
227 perspective.setPerspY(SkScalarDiv(SK_Scalar1, SkIntToScalar(1000)));
228 perspective.setSkewX(SkScalarDiv(SkIntToScalar(8), SkIntToScalar(25)));
229 canvas->concat(perspective);