Lines Matching full:edges
2695 // dst rect edges in NDC (-1 to 1)
3163 // or the rects are not the same (not just the same size but have the same edges).
3604 // Compute the edges of the rectangle (top,left,right,bottom) in NDC space. Must consider
3606 GrGLfloat edges[4];
3607 edges[0] = SkIntToScalar(rect.fLeft) + 0.5f;
3608 edges[2] = SkIntToScalar(rect.fRight) - 0.5f;
3610 edges[1] = h - (SkIntToScalar(rect.fTop) + 0.5f);
3611 edges[3] = h - (SkIntToScalar(rect.fBottom) - 0.5f);
3613 edges[1] = SkIntToScalar(rect.fTop) + 0.5f;
3614 edges[3] = SkIntToScalar(rect.fBottom) - 0.5f;
3616 edges[0] = 2 * edges[0] / w - 1.0f;
3617 edges[1] = 2 * edges[1] / h - 1.0f;
3618 edges[2] = 2 * edges[2] / w - 1.0f;
3619 edges[3] = 2 * edges[3] / h - 1.0f;
3642 GL_CALL(Uniform4fv(fWireRectProgram.fRectUniform, 1, edges));
3691 // dst rect edges in NDC (-1 to 1)
3712 // src rect edges in normalized texture space (0 to 1) unless we're using a RECTANGLE texture.