Lines Matching refs:drawState
135 void GrDrawTarget::setDrawState(GrDrawState* drawState) {
137 if (NULL == drawState) {
138 drawState = &fDefaultDrawState;
140 if (fDrawState != drawState) {
142 drawState->ref();
143 fDrawState = drawState;
196 size_t vertexSize = this->drawState()->getVertexSize();
279 geoSrc.fVertexSize = this->drawState()->getVertexSize();
299 geoSrc.fVertexSize = this->drawState()->getVertexSize();
350 const GrDrawState& drawState = this->getDrawState();
388 SkASSERT(NULL != drawState.getRenderTarget());
390 for (int s = 0; s < drawState.numColorStages(); ++s) {
391 const GrEffectRef& effect = *drawState.getColorStage(s).getEffect();
395 SkASSERT(texture->asRenderTarget() != drawState.getRenderTarget());
398 for (int s = 0; s < drawState.numCoverageStages(); ++s) {
399 const GrEffectRef& effect = *drawState.getCoverageStage(s).getEffect();
403 SkASSERT(texture->asRenderTarget() != drawState.getRenderTarget());
407 SkASSERT(drawState.validateVertexAttribs());
409 if (NULL == drawState.getRenderTarget()) {
419 GrRenderTarget* rt = this->drawState()->getRenderTarget();
530 const GrDrawState* drawState = &getDrawState();
534 devBounds = SkRect::MakeWH(SkIntToScalar(drawState->getRenderTarget()->width()),
535 SkIntToScalar(drawState->getRenderTarget()->height()));
539 SkMatrix viewM = drawState->getViewMatrix();
631 void set_vertex_attributes(GrDrawState* drawState, bool hasUVs) {
633 drawState->setVertexAttribs<gBWRectPosUVAttribs>(2);
635 drawState->setVertexAttribs<gBWRectPosUVAttribs>(1);
648 avmr.set(this->drawState(), *matrix);
651 set_vertex_attributes(this->drawState(), NULL != localRect);
659 size_t vsize = this->drawState()->getVertexSize();
706 fSavedState = target->drawState();
730 fSavedState = target->drawState();
940 this->drawState()->setRenderTarget(rt);
945 this->drawState()->addColorTextureEffect(tex, matrix);