Lines Matching refs:drawState
38 GrDrawState* drawState = gpu->drawState();
39 SkASSERT(drawState);
48 mat.preConcat(drawState->getViewMatrix());
52 drawState->addCoverageEffect(
122 GrDrawState* drawState = fGpu->drawState();
124 const GrRenderTarget* rt = drawState->getRenderTarget();
128 bool ignoreClip = !drawState->isClipState() || clipDataIn->fClipStack->isWideOpen();
182 are->set(fGpu->drawState());
232 #define SET_RANDOM_COLOR drawState->setColor(0xff000000 | gRandom.nextU());
242 void setup_boolean_blendcoeffs(GrDrawState* drawState, SkRegion::Op op) {
246 drawState->setBlendFunc(kOne_GrBlendCoeff, kZero_GrBlendCoeff);
249 drawState->setBlendFunc(kDC_GrBlendCoeff, kZero_GrBlendCoeff);
252 drawState->setBlendFunc(kOne_GrBlendCoeff, kISC_GrBlendCoeff);
255 drawState->setBlendFunc(kIDC_GrBlendCoeff, kISC_GrBlendCoeff);
258 drawState->setBlendFunc(kZero_GrBlendCoeff, kISC_GrBlendCoeff);
261 drawState->setBlendFunc(kIDC_GrBlendCoeff, kZero_GrBlendCoeff);
275 GrDrawState* drawState = fGpu->drawState();
277 drawState->setRenderTarget(target->asRenderTarget());
323 GrDrawState* drawState = fGpu->drawState();
324 drawState->setRenderTarget(target->asRenderTarget());
354 GrDrawState* drawState = fGpu->drawState();
355 SkAssertResult(avmr.setIdentity(drawState));
356 GrDrawState::AutoRestoreEffects are(drawState);
358 drawState->setRenderTarget(dstMask->asRenderTarget());
360 setup_boolean_blendcoeffs(drawState, op);
365 drawState->addColorEffect(
457 GrDrawState* drawState = fGpu->drawState();
460 drawState->enableState(GrDrawState::kCoverageDrawing_StateBit);
474 drawState->enableState(GrDrawState::kClip_StateBit);
513 setup_boolean_blendcoeffs(drawState, SkRegion::kReplace_Op);
526 drawState->setStencil(kStencilInElement);
527 setup_boolean_blendcoeffs(drawState, op);
530 drawState->setAlpha(invert ? 0x00 : 0xff);
547 drawState->setAlpha(invert ? 0xff : 0x00);
555 drawState->setStencil(kDrawOutsideElement);
557 drawState->disableStencil();
561 drawState->setAlpha(0xff);
562 setup_boolean_blendcoeffs(drawState, op);
582 GrDrawState* drawState = fGpu->drawState();
583 SkASSERT(drawState->isClipState());
585 GrRenderTarget* rt = drawState->getRenderTarget();
606 drawState = fGpu->drawState();
608 drawState->setRenderTarget(rt);
614 drawState->enableState(GrDrawState::kClip_StateBit);
617 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
632 drawState->disableState(GrGpu::kModifyStencilClip_StateBit);
635 drawState->setState(GrDrawState::kHWAntialias_StateBit, element->isAA());
696 *drawState->stencil() = gDrawToStencil;
702 *drawState->stencil() = gDrawToStencil;
713 drawState->enableState(GrGpu::kModifyStencilClip_StateBit);
715 *drawState->stencil() = stencilSettings[p];
799 const GrDrawState& drawState = fGpu->getDrawState();
804 if (this->isClipInStencil() && drawState.isClipState()) {
807 SkASSERT(!drawState.isStateFlagEnabled(
809 } else if (drawState.isStateFlagEnabled(
819 if (drawState.getStencil().isDisabled()) {
827 settings = drawState.getStencil();
833 drawState.getRenderTarget()->getStencilBuffer();
1022 const GrDrawState& drawState = fGpu->getDrawState();
1024 if (this->isClipInStencil() && drawState.isClipState()) {
1027 SkASSERT(!drawState.isStateFlagEnabled(
1029 } else if (drawState.isStateFlagEnabled(
1039 drawState.getRenderTarget()->getStencilBuffer();