Searched defs:drawState (Results 1 - 25 of 41) sorted by relevance

12

/external/chromium_org/third_party/skia/src/gpu/
H A DGrPathRenderer.h122 GrAssert(target->drawState()->getStencil().isDisabled() ||
165 GrDrawState* drawState = target->drawState(); local
173 drawState->setStencil(kIncrementStencil);
174 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
H A DGrSWMaskHelper.cpp175 GrDrawState* drawState = target->drawState(); local
178 if (!avmr.setIdentity(drawState)) {
181 GrDrawState::AutoRestoreEffects are(drawState);
195 maskMatrix.preConcat(drawState->getViewMatrix());
197 drawState->addCoverageEffect(
H A DGrSoftwarePathRenderer.cpp86 if (!avmr.setIdentity(target->drawState())) {
125 GrDrawState* drawState = target->drawState(); local
127 SkMatrix vm = drawState->getViewMatrix();
H A DGrStencilAndCoverPathRenderer.cpp68 GrDrawState* drawState = target->drawState(); local
69 GrAssert(drawState->getStencil().isDisabled());
81 SkScalar bloat = drawState->getViewMatrix().getMaxStretch() * SK_ScalarHalf;
92 *drawState->stencil() = kStencilPass;
106 SkIntToScalar(drawState->getRenderTarget()->width()),
107 SkIntToScalar(drawState->getRenderTarget()->height()));
109 if (!drawState->getViewMatrix().hasPerspective() && drawState->getViewInverse(&vmi)) {
114 avmr.setIdentity(drawState);
[all...]
H A DGrTextContext.cpp28 GrDrawState* drawState = fDrawTarget->drawState(); local
29 GrDrawState::AutoRestoreEffects are(drawState);
30 drawState->setFromPaint(fPaint, SkMatrix::I(), fContext->getRenderTarget());
39 drawState->addCoverageEffect(
50 drawState->setBlendConstant(fPaint.getColor());
51 drawState->setBlendFunc(kConstC_GrBlendCoeff, kISC_GrBlendCoeff);
54 drawState->setColor(0xffffffff);
57 drawState->setBlendFunc(fPaint.getSrcBlendCoeff(), fPaint.getDstBlendCoeff());
58 drawState
[all...]
H A DGrDefaultPathRenderer.cpp234 target->drawState()->setDefaultVertexAttribs();
353 GrDrawState* drawState = target->drawState(); local
354 bool colorWritesWereDisabled = drawState->isColorWriteDisabled();
356 GrAssert(GrDrawState::kBoth_DrawFace == drawState->getDrawFace());
451 GetPathDevBounds(path, drawState->getRenderTarget(), viewM, &devBounds);
454 drawState->setDrawFace(drawFace[p]);
456 *drawState->stencil() = *passes[p];
461 drawState->disableState(GrDrawState::kNoColorWrites_StateBit);
466 GrAssert(NULL != drawState
[all...]
H A DGrAARectRenderer.cpp271 static void set_aa_rect_vertex_attributes(GrDrawState* drawState, bool useCoverage) { argument
273 drawState->setVertexAttribs<gAARectCoverageAttribs>(SK_ARRAY_COUNT(gAARectCoverageAttribs));
275 drawState->setVertexAttribs<gAARectColorAttribs>(SK_ARRAY_COUNT(gAARectColorAttribs));
383 GrDrawState* drawState = target->drawState(); local
385 set_aa_rect_vertex_attributes(drawState, useVertexCoverage);
400 size_t vsize = drawState->getVertexSize();
530 GrDrawState* drawState = target->drawState(); local
547 drawState
594 GrDrawState* drawState = target->drawState(); local
704 GrDrawState* drawState = target->drawState(); local
[all...]
H A DGrClipMaskManager.cpp37 GrDrawState* drawState = gpu->drawState(); local
38 GrAssert(drawState);
47 mat.preConcat(drawState->getViewMatrix());
51 drawState->addCoverageEffect(
120 GrDrawState* drawState = fGpu->drawState(); local
122 const GrRenderTarget* rt = drawState->getRenderTarget();
126 bool ignoreClip = !drawState->isClipState() || clipDataIn->fClipStack->isWideOpen();
180 are->set(fGpu->drawState());
239 setup_boolean_blendcoeffs(GrDrawState* drawState, SkRegion::Op op) argument
272 GrDrawState* drawState = fGpu->drawState(); local
320 GrDrawState* drawState = fGpu->drawState(); local
351 GrDrawState* drawState = fGpu->drawState(); local
453 GrDrawState* drawState = fGpu->drawState(); local
575 GrDrawState* drawState = fGpu->drawState(); local
793 const GrDrawState& drawState = fGpu->getDrawState(); local
[all...]
H A DGrDrawTarget.h73 void setDrawState(GrDrawState* drawState);
84 GrDrawState* drawState() { return fDrawState; } function in class:GrDrawTarget
466 * the previous one in the destructor. The caller should call drawState() to
469 * GrDrawState* state = target->drawState();
586 : fAttribRestore(target->drawState()) {
613 target->drawState()->setDefaultVertexAttribs();
H A DGrOvalRenderer.cpp335 GrDrawState* drawState = target->drawState(); local
337 const SkMatrix& vm = drawState->getViewMatrix();
344 if (!avmr.setIdentity(drawState)) {
348 drawState->setVertexAttribs<gCircleVertexAttribs>(SK_ARRAY_COUNT(gCircleVertexAttribs));
349 GrAssert(sizeof(CircleVertex) == drawState->getVertexSize());
364 drawState->addCoverageEffect(effect, kCircleEdgeAttrIndex)->unref();
438 GrDrawState* drawState = target->drawState(); local
442 bool isAxisAlignedEllipse = drawState
648 GrDrawState* drawState = target->drawState(); local
[all...]
H A DGrAAConvexPathRenderer.cpp610 GrDrawState* drawState = target->drawState(); local
638 drawState->setVertexAttribs<gPathAttribs>(SK_ARRAY_COUNT(gPathAttribs));
642 drawState->addCoverageEffect(quadEffect, kEdgeAttrIndex)->unref();
648 GrAssert(sizeof(QuadVertex) == drawState->getVertexSize());
/external/skia/src/gpu/
H A DGrPathRenderer.h122 GrAssert(target->drawState()->getStencil().isDisabled() ||
165 GrDrawState* drawState = target->drawState(); local
173 drawState->setStencil(kIncrementStencil);
174 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
H A DGrSWMaskHelper.cpp175 GrDrawState* drawState = target->drawState(); local
178 if (!avmr.setIdentity(drawState)) {
181 GrDrawState::AutoRestoreEffects are(drawState);
195 maskMatrix.preConcat(drawState->getViewMatrix());
197 drawState->addCoverageEffect(
H A DGrSoftwarePathRenderer.cpp86 if (!avmr.setIdentity(target->drawState())) {
125 GrDrawState* drawState = target->drawState(); local
127 SkMatrix vm = drawState->getViewMatrix();
H A DGrStencilAndCoverPathRenderer.cpp68 GrDrawState* drawState = target->drawState(); local
69 GrAssert(drawState->getStencil().isDisabled());
81 SkScalar bloat = drawState->getViewMatrix().getMaxStretch() * SK_ScalarHalf;
92 *drawState->stencil() = kStencilPass;
106 SkIntToScalar(drawState->getRenderTarget()->width()),
107 SkIntToScalar(drawState->getRenderTarget()->height()));
109 if (!drawState->getViewMatrix().hasPerspective() && drawState->getViewInverse(&vmi)) {
114 avmr.setIdentity(drawState);
[all...]
H A DGrTextContext.cpp28 GrDrawState* drawState = fDrawTarget->drawState(); local
29 GrDrawState::AutoRestoreEffects are(drawState);
30 drawState->setFromPaint(fPaint, SkMatrix::I(), fContext->getRenderTarget());
39 drawState->addCoverageEffect(
50 drawState->setBlendConstant(fPaint.getColor());
51 drawState->setBlendFunc(kConstC_GrBlendCoeff, kISC_GrBlendCoeff);
54 drawState->setColor(0xffffffff);
57 drawState->setBlendFunc(fPaint.getSrcBlendCoeff(), fPaint.getDstBlendCoeff());
58 drawState
[all...]
H A DGrDefaultPathRenderer.cpp234 target->drawState()->setDefaultVertexAttribs();
353 GrDrawState* drawState = target->drawState(); local
354 bool colorWritesWereDisabled = drawState->isColorWriteDisabled();
356 GrAssert(GrDrawState::kBoth_DrawFace == drawState->getDrawFace());
451 GetPathDevBounds(path, drawState->getRenderTarget(), viewM, &devBounds);
454 drawState->setDrawFace(drawFace[p]);
456 *drawState->stencil() = *passes[p];
461 drawState->disableState(GrDrawState::kNoColorWrites_StateBit);
466 GrAssert(NULL != drawState
[all...]
H A DGrAARectRenderer.cpp271 static void set_aa_rect_vertex_attributes(GrDrawState* drawState, bool useCoverage) { argument
273 drawState->setVertexAttribs<gAARectCoverageAttribs>(SK_ARRAY_COUNT(gAARectCoverageAttribs));
275 drawState->setVertexAttribs<gAARectColorAttribs>(SK_ARRAY_COUNT(gAARectColorAttribs));
383 GrDrawState* drawState = target->drawState(); local
385 set_aa_rect_vertex_attributes(drawState, useVertexCoverage);
400 size_t vsize = drawState->getVertexSize();
530 GrDrawState* drawState = target->drawState(); local
547 drawState
594 GrDrawState* drawState = target->drawState(); local
704 GrDrawState* drawState = target->drawState(); local
[all...]
H A DGrClipMaskManager.cpp37 GrDrawState* drawState = gpu->drawState(); local
38 GrAssert(drawState);
47 mat.preConcat(drawState->getViewMatrix());
51 drawState->addCoverageEffect(
120 GrDrawState* drawState = fGpu->drawState(); local
122 const GrRenderTarget* rt = drawState->getRenderTarget();
126 bool ignoreClip = !drawState->isClipState() || clipDataIn->fClipStack->isWideOpen();
180 are->set(fGpu->drawState());
239 setup_boolean_blendcoeffs(GrDrawState* drawState, SkRegion::Op op) argument
272 GrDrawState* drawState = fGpu->drawState(); local
320 GrDrawState* drawState = fGpu->drawState(); local
351 GrDrawState* drawState = fGpu->drawState(); local
453 GrDrawState* drawState = fGpu->drawState(); local
575 GrDrawState* drawState = fGpu->drawState(); local
793 const GrDrawState& drawState = fGpu->getDrawState(); local
[all...]
H A DGrDrawTarget.h73 void setDrawState(GrDrawState* drawState);
84 GrDrawState* drawState() { return fDrawState; } function in class:GrDrawTarget
466 * the previous one in the destructor. The caller should call drawState() to
469 * GrDrawState* state = target->drawState();
586 : fAttribRestore(target->drawState()) {
613 target->drawState()->setDefaultVertexAttribs();
H A DGrOvalRenderer.cpp335 GrDrawState* drawState = target->drawState(); local
337 const SkMatrix& vm = drawState->getViewMatrix();
344 if (!avmr.setIdentity(drawState)) {
348 drawState->setVertexAttribs<gCircleVertexAttribs>(SK_ARRAY_COUNT(gCircleVertexAttribs));
349 GrAssert(sizeof(CircleVertex) == drawState->getVertexSize());
364 drawState->addCoverageEffect(effect, kCircleEdgeAttrIndex)->unref();
438 GrDrawState* drawState = target->drawState(); local
442 bool isAxisAlignedEllipse = drawState
648 GrDrawState* drawState = target->drawState(); local
[all...]
/external/chromium_org/third_party/skia/src/gpu/gl/
H A DGrGLProgramDesc.cpp35 void GrGLProgramDesc::Build(const GrDrawState& drawState, argument
61 bool requiresColorAttrib = !skipColor && drawState.hasColorVertexAttribute();
62 bool requiresCoverageAttrib = !skipCoverage && drawState.hasCoverageVertexAttribute();
65 drawState.hasLocalCoordAttribute();
69 (!requiresColorAttrib && 0xffffffff == drawState.getColor());
71 int numEffects = (skipColor ? 0 : drawState.numColorStages()) +
72 (skipCoverage ? 0 : drawState.numCoverageStages());
91 for (int s = 0; s < drawState.numColorStages(); ++s) {
93 get_key_and_update_stats(drawState.getColorStage(s), gpu->glCaps(),
98 for (int s = 0; s < drawState
[all...]
H A DGrGpuGL_program.cpp260 const GrDrawState& drawState = this->getDrawState(); local
263 GrAssert(NULL != drawState.getRenderTarget());
272 GrDrawState::BlendOptFlags blendOpts = drawState.getBlendOpts(false, &srcCoeff, &dstCoeff);
322 if (drawState.isClipState()) {
323 this->getClip()->getConservativeBounds(drawState.getRenderTarget(), &devClipBounds);
/external/skia/src/gpu/gl/
H A DGrGLProgramDesc.cpp35 void GrGLProgramDesc::Build(const GrDrawState& drawState, argument
61 bool requiresColorAttrib = !skipColor && drawState.hasColorVertexAttribute();
62 bool requiresCoverageAttrib = !skipCoverage && drawState.hasCoverageVertexAttribute();
65 drawState.hasLocalCoordAttribute();
69 (!requiresColorAttrib && 0xffffffff == drawState.getColor());
71 int numEffects = (skipColor ? 0 : drawState.numColorStages()) +
72 (skipCoverage ? 0 : drawState.numCoverageStages());
91 for (int s = 0; s < drawState.numColorStages(); ++s) {
93 get_key_and_update_stats(drawState.getColorStage(s), gpu->glCaps(),
98 for (int s = 0; s < drawState
[all...]
H A DGrGpuGL_program.cpp260 const GrDrawState& drawState = this->getDrawState(); local
263 GrAssert(NULL != drawState.getRenderTarget());
272 GrDrawState::BlendOptFlags blendOpts = drawState.getBlendOpts(false, &srcCoeff, &dstCoeff);
322 if (drawState.isClipState()) {
323 this->getClip()->getConservativeBounds(drawState.getRenderTarget(), &devClipBounds);

Completed in 263 milliseconds

12