Home | History | Annotate | Download | only in gm

Lines Matching defs:perspective

281 // Based on the original gradient slide, but with perspective applied to the
314 // apply an increasing y perspective as we move to the right
315 SkMatrix perspective;
316 perspective.setIdentity();
317 perspective.setPerspY(SkIntToScalar(i+1) / 500);
318 perspective.setSkewX(SkIntToScalar(i+1) / 10);
320 paint.setShader(gGradMakers[j](pts, gGradData[i], tm, perspective));
337 // Based on the original gradient slide, but with perspective applied to
352 SkMatrix perspective;
353 perspective.setIdentity();
354 perspective.setPerspY(0.001f);
355 perspective.setSkewX(SkIntToScalar(8) / 25);
356 canvas->concat(perspective);