Home | History | Annotate | Download | only in hwui

Lines Matching refs:matrix

22 #include "Matrix.h"
65 * Compute the matrix to transform to screen space.
66 * @param screenSpace Output param for the computed matrix.
67 * @param unitMatrix The unit matrix for gradient shaders, as returned by SkShader::asAGradient,
69 * @param localMatrix Local matrix, as returned by SkShader::getLocalMatrix().
70 * @param modelViewMatrix Model view matrix, as supplied by the OpenGLRenderer.
83 // gradient shader matrix helpers
86 static void toLinearUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) {
92 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY);
93 matrix->postTranslate(-pts[0].fX, -pts[0].fY);
94 matrix->postScale(inv, inv);
98 SkMatrix* matrix) {
100 matrix->setTranslate(-x, -y);
101 matrix->postScale(inv, inv);
104 static void toSweepUnitMatrix(const float x, const float y, SkMatrix* matrix) {
105 matrix->setTranslate(-x, -y);
213 * 1) require UV mapping, which isn't implemented in matrix computation below