/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 | 101 const GrDrawState& drawState = fGpu->getDrawState(); 110 coverage = drawState.getCoverageColor(); 112 color = drawState.getColor(); 113 coverage = drawState.getCoverageColor(); 116 this->setColor(drawState, color, sharedState); 117 this->setCoverage(drawState, coverage, sharedState); 118 this->setMatrixAndRenderTargetHeight(drawState); 153 void GrGLProgram::setColor(const GrDrawState& drawState, 157 if (!drawState.hasColorVertexAttribute()) { 193 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 | 101 const GrDrawState& drawState = fGpu->getDrawState(); 110 coverage = drawState.getCoverageColor(); 112 color = drawState.getColor(); 113 coverage = drawState.getCoverageColor(); 116 this->setColor(drawState, color, sharedState); 117 this->setCoverage(drawState, coverage, sharedState); 118 this->setMatrixAndRenderTargetHeight(drawState); 153 void GrGLProgram::setColor(const GrDrawState& drawState, 157 if (!drawState.hasColorVertexAttribute()) { 193 void GrGLProgram::setCoverage(const GrDrawState& drawState, [all...] |
/external/chromium_org/third_party/skia/experimental/AndroidPathRenderer/ |
GrAndroidPathRenderer.cpp | 40 GrDrawState* drawState = target->drawState(); 47 drawState->setVertexAttribs(attribs, SK_ARRAY_COUNT(attribs)); 48 drawState->setAttribIndex(GrDrawState::kPosition_AttribIndex, 0); 49 drawState->setAttribIndex(GrDrawState::kCoverage_AttribIndex, 1); 50 drawState->setAttribBindings(GrDrawState::kCoverage_AttribBindingsBit); 52 drawState->setDefaultVertexAttribs(); 65 SkASSERT(sizeof(ColorVertex) == drawState->getVertexSize()); 80 size_t vsize = drawState->getVertexSize();
|
/external/skia/experimental/AndroidPathRenderer/ |
GrAndroidPathRenderer.cpp | 40 GrDrawState* drawState = target->drawState(); 47 drawState->setVertexAttribs(attribs, SK_ARRAY_COUNT(attribs)); 48 drawState->setAttribIndex(GrDrawState::kPosition_AttribIndex, 0); 49 drawState->setAttribIndex(GrDrawState::kCoverage_AttribIndex, 1); 50 drawState->setAttribBindings(GrDrawState::kCoverage_AttribBindingsBit); 52 drawState->setDefaultVertexAttribs(); 65 SkASSERT(sizeof(ColorVertex) == drawState->getVertexSize()); 80 size_t vsize = drawState->getVertexSize();
|
/external/chromium_org/third_party/skia/src/gpu/ |
GrClipMaskManager.cpp | 40 GrDrawState* drawState = gpu->drawState(); 41 SkASSERT(drawState); 50 mat.preConcat(drawState->getViewMatrix()); 54 drawState->addCoverageEffect( 115 GrDrawState* drawState = fGpu->drawState(); 122 are->set(drawState); 123 GrRenderTarget* rt = drawState->getRenderTarget(); 191 are->set(fGpu->drawState()); [all...] |
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();
|
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 | 153 AutoVertexAttribRestore(GrDrawState* drawState) { 154 SkASSERT(NULL != drawState); 155 fDrawState = drawState; 156 fVAPtr = drawState->fCommon.fVAPtr; 157 fVACount = drawState->fCommon.fVACount; 273 AutoColorRestore(GrDrawState* drawState, GrColor color) { 275 this->set(drawState, color); 285 void set(GrDrawState* drawState, GrColor color) { 287 fDrawState = drawState; 609 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 | 136 void GrDrawTarget::setDrawState(GrDrawState* drawState) { 138 if (NULL == drawState) { 139 drawState = &fDefaultDrawState; 141 if (fDrawState != drawState) { 143 drawState->ref(); 144 fDrawState = drawState; 197 size_t vertexSize = this->drawState()->getVertexSize(); 280 geoSrc.fVertexSize = this->drawState()->getVertexSize(); 300 geoSrc.fVertexSize = this->drawState()->getVertexSize(); 351 const GrDrawState& drawState = this->getDrawState() [all...] |
GrDefaultPathRenderer.cpp | 233 target->drawState()->setDefaultVertexAttribs(); 339 target->drawState()->setCoverage(newCoverage); 366 GrDrawState* drawState = target->drawState(); 367 bool colorWritesWereDisabled = drawState->isColorWriteDisabled(); 369 SkASSERT(GrDrawState::kBoth_DrawFace == drawState->getDrawFace()); 464 GetPathDevBounds(path, drawState->getRenderTarget(), viewM, &devBounds); 467 drawState->setDrawFace(drawFace[p]); 469 *drawState->stencil() = *passes[p]; 474 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...] |
/external/skia/src/gpu/ |
GrClipMaskManager.cpp | 40 GrDrawState* drawState = gpu->drawState(); 41 SkASSERT(drawState); 50 mat.preConcat(drawState->getViewMatrix()); 54 drawState->addCoverageEffect( 115 GrDrawState* drawState = fGpu->drawState(); 122 are->set(drawState); 123 GrRenderTarget* rt = drawState->getRenderTarget(); 191 are->set(fGpu->drawState()); [all...] |
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();
|
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 | 153 AutoVertexAttribRestore(GrDrawState* drawState) { 154 SkASSERT(NULL != drawState); 155 fDrawState = drawState; 156 fVAPtr = drawState->fCommon.fVAPtr; 157 fVACount = drawState->fCommon.fVACount; 273 AutoColorRestore(GrDrawState* drawState, GrColor color) { 275 this->set(drawState, color); 285 void set(GrDrawState* drawState, GrColor color) { 287 fDrawState = drawState; 609 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 | 136 void GrDrawTarget::setDrawState(GrDrawState* drawState) { 138 if (NULL == drawState) { 139 drawState = &fDefaultDrawState; 141 if (fDrawState != drawState) { 143 drawState->ref(); 144 fDrawState = drawState; 197 size_t vertexSize = this->drawState()->getVertexSize(); 280 geoSrc.fVertexSize = this->drawState()->getVertexSize(); 300 geoSrc.fVertexSize = this->drawState()->getVertexSize(); 351 const GrDrawState& drawState = this->getDrawState() [all...] |
GrDefaultPathRenderer.cpp | 233 target->drawState()->setDefaultVertexAttribs(); 339 target->drawState()->setCoverage(newCoverage); 366 GrDrawState* drawState = target->drawState(); 367 bool colorWritesWereDisabled = drawState->isColorWriteDisabled(); 369 SkASSERT(GrDrawState::kBoth_DrawFace == drawState->getDrawFace()); 464 GetPathDevBounds(path, drawState->getRenderTarget(), viewM, &devBounds); 467 drawState->setDrawFace(drawFace[p]); 469 *drawState->stencil() = *passes[p]; 474 drawState->disableState(GrDrawState::kNoColorWrites_StateBit) [all...] |
/external/chromium_org/third_party/skia/gm/ |
convexpolyeffect.cpp | 129 GrDrawState* drawState = tt.target()->drawState(); 130 drawState->setVertexAttribs<kAttribs>(SK_ARRAY_COUNT(kAttribs)); 142 drawState->addCoverageEffect(effect, 1); 143 drawState->setIdentityViewMatrix(); 144 drawState->setRenderTarget(rt); 145 drawState->setColor(0xff000000); 195 GrDrawState* drawState = tt.target()->drawState(); 196 drawState->setVertexAttribs<kAttribs>(SK_ARRAY_COUNT(kAttribs)) [all...] |
texturedomaineffect.cpp | 90 GrDrawState* drawState = tt.target()->drawState(); 136 drawState->reset(viewMatrix); 137 drawState->setRenderTarget(rt); 138 drawState->setColor(0xffffffff); 139 drawState->addColorEffect(effect, 1);
|
/external/skia/gm/ |
convexpolyeffect.cpp | 129 GrDrawState* drawState = tt.target()->drawState(); 130 drawState->setVertexAttribs<kAttribs>(SK_ARRAY_COUNT(kAttribs)); 142 drawState->addCoverageEffect(effect, 1); 143 drawState->setIdentityViewMatrix(); 144 drawState->setRenderTarget(rt); 145 drawState->setColor(0xff000000); 195 GrDrawState* drawState = tt.target()->drawState(); 196 drawState->setVertexAttribs<kAttribs>(SK_ARRAY_COUNT(kAttribs)) [all...] |
texturedomaineffect.cpp | 90 GrDrawState* drawState = tt.target()->drawState(); 136 drawState->reset(viewMatrix); 137 drawState->setRenderTarget(rt); 138 drawState->setColor(0xffffffff); 139 drawState->addColorEffect(effect, 1);
|