/external/chromium_org/third_party/skia/src/gpu/gl/ |
GrGLProgramDesc.cpp | 39 void GrGLProgramDesc::Build(const GrDrawState& drawState, 62 firstEffectiveColorStage = drawState.numColorStages(); 65 const GrEffect* effect = drawState.getColorStage(firstEffectiveColorStage).getEffect()->get(); 73 firstEffectiveCoverageStage = drawState.numCoverageStages(); 76 const GrEffect* effect = drawState.getCoverageStage(firstEffectiveCoverageStage).getEffect()->get(); 86 bool requiresColorAttrib = !skipColor && drawState.hasColorVertexAttribute(); 87 bool requiresCoverageAttrib = !skipCoverage && drawState.hasCoverageVertexAttribute(); 90 drawState.hasLocalCoordAttribute(); 94 (!requiresColorAttrib && 0xffffffff == drawState.getColor()) || 97 int numEffects = (skipColor ? 0 : (drawState.numColorStages() - firstEffectiveColorStage)) [all...] |
GrGLProgram.cpp | 199 const GrDrawState& drawState = fGpu->getDrawState(); 208 coverage = drawState.getCoverageColor(); 210 color = drawState.getColor(); 211 coverage = drawState.getCoverageColor(); 214 this->setColor(drawState, color, sharedState); 215 this->setCoverage(drawState, coverage, sharedState); 216 this->setMatrixAndRenderTargetHeight(drawState); 250 void GrGLProgram::setColor(const GrDrawState& drawState, 254 if (!drawState.hasColorVertexAttribute()) { 290 void GrGLProgram::setCoverage(const GrDrawState& drawState, [all...] |
/external/skia/src/gpu/gl/ |
GrGLProgramDesc.cpp | 39 void GrGLProgramDesc::Build(const GrDrawState& drawState, 62 firstEffectiveColorStage = drawState.numColorStages(); 65 const GrEffect* effect = drawState.getColorStage(firstEffectiveColorStage).getEffect()->get(); 73 firstEffectiveCoverageStage = drawState.numCoverageStages(); 76 const GrEffect* effect = drawState.getCoverageStage(firstEffectiveCoverageStage).getEffect()->get(); 86 bool requiresColorAttrib = !skipColor && drawState.hasColorVertexAttribute(); 87 bool requiresCoverageAttrib = !skipCoverage && drawState.hasCoverageVertexAttribute(); 90 drawState.hasLocalCoordAttribute(); 94 (!requiresColorAttrib && 0xffffffff == drawState.getColor()) || 97 int numEffects = (skipColor ? 0 : (drawState.numColorStages() - firstEffectiveColorStage)) [all...] |
GrGLProgram.cpp | 199 const GrDrawState& drawState = fGpu->getDrawState(); 208 coverage = drawState.getCoverageColor(); 210 color = drawState.getColor(); 211 coverage = drawState.getCoverageColor(); 214 this->setColor(drawState, color, sharedState); 215 this->setCoverage(drawState, coverage, sharedState); 216 this->setMatrixAndRenderTargetHeight(drawState); 250 void GrGLProgram::setColor(const GrDrawState& drawState, 254 if (!drawState.hasColorVertexAttribute()) { 290 void GrGLProgram::setCoverage(const GrDrawState& drawState, [all...] |
/external/chromium_org/third_party/skia/src/gpu/ |
GrStencilAndCoverPathRenderer.cpp | 69 GrDrawState* drawState = target->drawState(); 70 SkASSERT(drawState->getStencil().isDisabled()); 86 *drawState->stencil() = kInvertedStencilPass; 96 *drawState->stencil() = kStencilPass; 101 target->drawState()->stencil()->setDisabled();
|
GrClipMaskManager.cpp | 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()); [all...] |
GrBitmapTextContext.cpp | 58 GrDrawState* drawState = fDrawTarget->drawState(); 59 GrDrawState::AutoRestoreEffects are(drawState); 60 drawState->setFromPaint(fPaint, SkMatrix::I(), fContext->getRenderTarget()); 69 drawState->addCoverageEffect( 74 drawState->setBlendFunc(fPaint.getSrcBlendCoeff(), fPaint.getDstBlendCoeff()); 75 drawState->setColor(0xffffffff); 88 drawState->setColor(SkColorSetARGB(a, a, a, a)); 90 drawState->setBlendConstant(skcolor_to_grcolor_nopremultiply(fSkPaintColor)); 91 drawState->setBlendFunc(kConstC_GrBlendCoeff, kISC_GrBlendCoeff) [all...] |
GrDistanceFieldTextContext.cpp | 59 GrDrawState* drawState = fDrawTarget->drawState(); 60 GrDrawState::AutoRestoreEffects are(drawState); 61 drawState->setFromPaint(fPaint, fContext->getMatrix(), fContext->getRenderTarget()); 70 drawState->addCoverageEffect( 86 drawState->setColor(SkColorSetARGB(a, a, a, a)); 88 drawState->setBlendConstant(skcolor_to_grcolor_nopremultiply(fSkPaintColor)); 89 drawState->setBlendFunc(kConstC_GrBlendCoeff, kISC_GrBlendCoeff); 92 drawState->setBlendFunc(fPaint.getSrcBlendCoeff(), fPaint.getDstBlendCoeff()); 93 drawState->setColor(fPaint.getColor()) [all...] |
GrPathRenderer.h | 122 SkASSERT(target->drawState()->getStencil().isDisabled() || 179 GrDrawState* drawState = target->drawState(); 187 drawState->setStencil(kIncrementStencil); 188 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
|
GrDrawState.h | 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) [all...] |
GrSoftwarePathRenderer.cpp | 86 if (!avmr.setIdentity(target->drawState())) { 125 GrDrawState* drawState = target->drawState(); 127 SkMatrix vm = drawState->getViewMatrix();
|
GrDrawTarget.cpp | 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() [all...] |
GrDefaultPathRenderer.cpp | 235 target->drawState()->setDefaultVertexAttribs(); 341 target->drawState()->setCoverage(newCoverage); 368 GrDrawState* drawState = target->drawState(); 369 bool colorWritesWereDisabled = drawState->isColorWriteDisabled(); 371 SkASSERT(GrDrawState::kBoth_DrawFace == drawState->getDrawFace()); 466 GetPathDevBounds(path, drawState->getRenderTarget(), viewM, &devBounds); 469 drawState->setDrawFace(drawFace[p]); 471 *drawState->stencil() = *passes[p]; 476 drawState->disableState(GrDrawState::kNoColorWrites_StateBit) [all...] |
GrDrawState.cpp | 411 void GrDrawState::AutoViewMatrixRestore::set(GrDrawState* drawState, 416 if (NULL == drawState || preconcatMatrix.isIdentity()) { 419 fDrawState = drawState; 421 fViewMatrix = drawState->getViewMatrix(); 422 drawState->fCommon.fViewMatrix.preConcat(preconcatMatrix); 428 bool GrDrawState::AutoViewMatrixRestore::setIdentity(GrDrawState* drawState) { 431 if (NULL == drawState) { 435 if (drawState->getViewMatrix().isIdentity()) { 439 fViewMatrix = drawState->getViewMatrix(); 440 if (0 == drawState->numTotalStages()) [all...] |
GrAAHairLinePathRenderer.cpp | 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)) [all...] |
/external/skia/src/gpu/ |
GrStencilAndCoverPathRenderer.cpp | 69 GrDrawState* drawState = target->drawState(); 70 SkASSERT(drawState->getStencil().isDisabled()); 86 *drawState->stencil() = kInvertedStencilPass; 96 *drawState->stencil() = kStencilPass; 101 target->drawState()->stencil()->setDisabled();
|
GrClipMaskManager.cpp | 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()); [all...] |
GrBitmapTextContext.cpp | 58 GrDrawState* drawState = fDrawTarget->drawState(); 59 GrDrawState::AutoRestoreEffects are(drawState); 60 drawState->setFromPaint(fPaint, SkMatrix::I(), fContext->getRenderTarget()); 69 drawState->addCoverageEffect( 74 drawState->setBlendFunc(fPaint.getSrcBlendCoeff(), fPaint.getDstBlendCoeff()); 75 drawState->setColor(0xffffffff); 88 drawState->setColor(SkColorSetARGB(a, a, a, a)); 90 drawState->setBlendConstant(skcolor_to_grcolor_nopremultiply(fSkPaintColor)); 91 drawState->setBlendFunc(kConstC_GrBlendCoeff, kISC_GrBlendCoeff) [all...] |
GrDistanceFieldTextContext.cpp | 59 GrDrawState* drawState = fDrawTarget->drawState(); 60 GrDrawState::AutoRestoreEffects are(drawState); 61 drawState->setFromPaint(fPaint, fContext->getMatrix(), fContext->getRenderTarget()); 70 drawState->addCoverageEffect( 86 drawState->setColor(SkColorSetARGB(a, a, a, a)); 88 drawState->setBlendConstant(skcolor_to_grcolor_nopremultiply(fSkPaintColor)); 89 drawState->setBlendFunc(kConstC_GrBlendCoeff, kISC_GrBlendCoeff); 92 drawState->setBlendFunc(fPaint.getSrcBlendCoeff(), fPaint.getDstBlendCoeff()); 93 drawState->setColor(fPaint.getColor()) [all...] |
GrPathRenderer.h | 122 SkASSERT(target->drawState()->getStencil().isDisabled() || 179 GrDrawState* drawState = target->drawState(); 187 drawState->setStencil(kIncrementStencil); 188 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
|
GrDrawState.h | 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) [all...] |
GrSoftwarePathRenderer.cpp | 86 if (!avmr.setIdentity(target->drawState())) { 125 GrDrawState* drawState = target->drawState(); 127 SkMatrix vm = drawState->getViewMatrix();
|
GrDrawTarget.cpp | 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() [all...] |
GrDefaultPathRenderer.cpp | 235 target->drawState()->setDefaultVertexAttribs(); 341 target->drawState()->setCoverage(newCoverage); 368 GrDrawState* drawState = target->drawState(); 369 bool colorWritesWereDisabled = drawState->isColorWriteDisabled(); 371 SkASSERT(GrDrawState::kBoth_DrawFace == drawState->getDrawFace()); 466 GetPathDevBounds(path, drawState->getRenderTarget(), viewM, &devBounds); 469 drawState->setDrawFace(drawFace[p]); 471 *drawState->stencil() = *passes[p]; 476 drawState->disableState(GrDrawState::kNoColorWrites_StateBit) [all...] |
GrDrawState.cpp | 411 void GrDrawState::AutoViewMatrixRestore::set(GrDrawState* drawState, 416 if (NULL == drawState || preconcatMatrix.isIdentity()) { 419 fDrawState = drawState; 421 fViewMatrix = drawState->getViewMatrix(); 422 drawState->fCommon.fViewMatrix.preConcat(preconcatMatrix); 428 bool GrDrawState::AutoViewMatrixRestore::setIdentity(GrDrawState* drawState) { 431 if (NULL == drawState) { 435 if (drawState->getViewMatrix().isIdentity()) { 439 fViewMatrix = drawState->getViewMatrix(); 440 if (0 == drawState->numTotalStages()) [all...] |