Lines Matching refs:drawState
154 AutoVertexAttribRestore(GrDrawState* drawState) {
155 SkASSERT(NULL != drawState);
156 fDrawState = drawState;
157 fVAPtr = drawState->fCommon.fVAPtr;
158 fVACount = drawState->fCommon.fVACount;
274 AutoColorRestore(GrDrawState* drawState, GrColor color) {
276 this->set(drawState, color);
286 void set(GrDrawState* drawState, GrColor color) {
288 fDrawState = drawState;
608 void set(GrDrawState* drawState, const SkMatrix& preconcatMatrix);
612 bool setIdentity(GrDrawState* drawState);
966 void saveFrom(const GrDrawState& drawState) {
967 fCommon = drawState.fCommon;
969 fRenderTarget = drawState.fRenderTarget.get();
974 fStages.reset(drawState.fColorStages.count() + drawState.fCoverageStages.count());
975 fColorStageCnt = drawState.fColorStages.count();
977 fStages[i].saveFrom(drawState.fColorStages[i]);
979 for (int i = 0; i < drawState.fCoverageStages.count(); ++i) {
980 fStages[i + fColorStageCnt].saveFrom(drawState.fCoverageStages[i]);
985 void restoreTo(GrDrawState* drawState) {
987 drawState->fCommon = fCommon;
988 drawState->setRenderTarget(fRenderTarget);
990 drawState->fColorStages.reset();
992 SkNEW_APPEND_TO_TARRAY(&drawState->fColorStages, GrEffectStage, (fStages[i]));
995 drawState->fCoverageStages.reset();
997 SkNEW_APPEND_TO_TARRAY(&drawState->fCoverageStages,