Home | History | Annotate | Download | only in gpu

Lines Matching refs:drawState

323         GrDrawState* drawState = fGpu->drawState();
324 drawState->setRenderTarget(texture->asRenderTarget());
331 drawState->addColorTextureEffect(clampedTexture, SkMatrix::I(), params);
333 drawState->setVertexAttribs<gVertexAttribs>(SK_ARRAY_COUNT(gVertexAttribs));
725 const GrDrawState& drawState = target->getDrawState();
726 if (drawState.getRenderTarget()->isMultisampled()) {
774 SkMatrix combinedMatrix = target->drawState()->getViewMatrix();
822 if (!avmr.setIdentity(target->drawState())) {
844 target->drawState()->setDefaultVertexAttribs();
873 GrDrawState* drawState = target->drawState();
874 avmr.set(drawState, *matrix);
910 static void set_vertex_attributes(GrDrawState* drawState,
921 drawState->setVertexAttribs<gPosUVColorAttribs>(3);
924 drawState->setVertexAttribs<gPosUVColorAttribs>(2);
927 drawState->setVertexAttribs<gPosColorAttribs>(2);
929 drawState->setVertexAttribs<gPosColorAttribs>(1);
951 GrDrawState* drawState = target->drawState();
954 set_vertex_attributes(drawState, texCoords, colors, &colorOffset, &texOffset);
956 size_t vertexSize = drawState->getVertexSize();
1043 const GrDrawState& drawState = target->getDrawState();
1047 if (!drawState.getViewMatrix().preservesAxisAlignment()) {
1103 GrDrawState* drawState = target->drawState();
1105 bool useCoverageAA = paint.isAntiAlias() && !drawState->getRenderTarget()->isMultisampled();
1113 SkMatrix origViewMatrix = drawState->getViewMatrix();
1115 if (!avmr.setIdentity(target->drawState())) {
1420 GrDrawState* drawState = fGpu->drawState();
1422 drawState->addColorEffect(effect);
1424 drawState->setRenderTarget(texture->asRenderTarget());
1484 GrDrawState* drawState = fGpu->drawState();
1485 drawState->setRenderTarget(dst);
1497 drawState->addColorTextureEffect(src, sampleM);
1613 GrDrawState* drawState = fGpu->drawState();
1615 drawState->addColorEffect(effect);
1617 drawState->setRenderTarget(target);
1664 SkASSERT(fDrawState == target->drawState());