Home | History | Annotate | Download | only in gpu

Lines Matching refs:drawState

737     GrDrawState* drawState = target->drawState();
739 const SkMatrix& viewM = drawState->getViewMatrix();
743 drawState->setVertexAttribs<gHairlineLineAttribs>(SK_ARRAY_COUNT(gHairlineLineAttribs));
744 SkASSERT(sizeof(LineVertex) == drawState->getVertexSize());
762 add_line(&lines[2*i], toSrc, drawState->getCoverageColor(), &verts);
784 GrDrawState* drawState = target->drawState();
786 const SkMatrix& viewM = drawState->getViewMatrix();
790 target->drawState()->setVertexAttribs<gHairlineBezierAttribs>(SK_ARRAY_COUNT(gHairlineBezierAttribs));
860 bool check_bounds(GrDrawState* drawState, const SkRect& devBounds, void* vertices, int vCount)
865 if (drawState->getViewMatrix().hasPerspective()) {
869 SkASSERT(drawState->getViewMatrix().isIdentity());
881 drawState->getViewMatrix().mapPoints(&pos, 1);
900 GrDrawState* drawState = target->drawState();
908 target->drawState()->setCoverage(newCoverage);
912 target->getClip()->getConservativeBounds(drawState->getRenderTarget(), &devClipBounds);
922 quadCnt = generate_lines_and_quads(path, drawState->getViewMatrix(), devClipBounds,
950 GrDrawState* drawState = target->drawState();
953 SkASSERT(check_bounds<LineVertex>(drawState, devBounds, arg.vertices(),
957 GrDrawState::AutoRestoreEffects are(drawState);
1000 GrDrawState* drawState = target->drawState();
1005 SkASSERT(check_bounds<BezierVertex>(drawState, devBounds, arg.vertices(),
1012 GrDrawState::AutoRestoreEffects are(drawState);
1014 drawState->addCoverageEffect(hairQuadEffect, kEdgeAttrIndex)->unref();
1029 GrDrawState::AutoRestoreEffects are(drawState);
1033 drawState->addCoverageEffect(hairConicEffect, 1, 2)->unref();