Lines Matching defs:matrix
29 // This needs to be updated if GP starts specializing varyings on additional matrix types.
148 // Update tracking of last matrix and matrix props.
175 // same coordinates so that multiple FPs in a subtree can share. If there are no matrix
237 // If we recorded a transform info, its sample matrix must be uniform
241 // Start with this matrix and accumulate additional matrices as we walk up the FP tree
258 // or a parent varying. Getting here means this FP was sampled with a uniform matrix
260 // matrix samples and thus this node wasn't assigned a varying.
329 const SkMatrix& matrix,
331 if (!uniform.isValid() || (state && SkMatrixPriv::CheapEqual(*state, matrix))) {
336 *state = matrix;
338 if (matrix.isScaleTranslate() && !shaderCaps.reducedShaderMode()) {
341 float values[4] = {matrix.getScaleX(), matrix.getTranslateX(),
342 matrix.getScaleY(), matrix.getTranslateY()};
345 pdman.setSkMatrix(uniform, matrix);
365 const SkMatrix& matrix,
372 if (matrix.isIdentity() && !shaderCaps.reducedShaderMode()) {
378 bool useCompactTransform = matrix.isScaleTranslate() && !shaderCaps.reducedShaderMode();
388 // A float3 stays a float3 whether or not the matrix adds perspective
404 if (matrix.hasPerspective()) {
405 // A float2 is promoted to a float3 if we add perspective via the matrix