HomeSort by relevance Sort by last modified time
    Searched refs:drawState (Results 1 - 25 of 47) sorted by null

1 2

  /external/chromium_org/third_party/skia/src/gpu/gl/
GrGLProgramDesc.cpp 35 void GrGLProgramDesc::Build(const GrDrawState& drawState,
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.numCoverageStages(); ++s)
    [all...]
  /external/skia/src/gpu/gl/
GrGLProgramDesc.cpp 35 void GrGLProgramDesc::Build(const GrDrawState& drawState,
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.numCoverageStages(); ++s)
    [all...]
  /external/chromium_org/third_party/skia/src/gpu/
GrStencilAndCoverPathRenderer.cpp 68 GrDrawState* drawState = target->drawState();
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...]
GrClipMaskManager.cpp 37 GrDrawState* drawState = gpu->drawState();
38 GrAssert(drawState);
47 mat.preConcat(drawState->getViewMatrix());
51 drawState->addCoverageEffect(
120 GrDrawState* drawState = fGpu->drawState();
122 const GrRenderTarget* rt = drawState->getRenderTarget();
126 bool ignoreClip = !drawState->isClipState() || clipDataIn->fClipStack->isWideOpen();
180 are->set(fGpu->drawState());
    [all...]
GrTextContext.cpp 28 GrDrawState* drawState = fDrawTarget->drawState();
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->setColor(fPaint.getColor())
    [all...]
GrPathRenderer.h 122 GrAssert(target->drawState()->getStencil().isDisabled() ||
165 GrDrawState* drawState = target->drawState();
173 drawState->setStencil(kIncrementStencil);
174 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
GrDrawState.h 153 AutoVertexAttribRestore(GrDrawState* drawState) {
154 GrAssert(NULL != drawState);
155 fDrawState = drawState;
156 fVAPtr = drawState->fCommon.fVAPtr;
157 fVACount = drawState->fCommon.fVACount;
286 AutoColorRestore(GrDrawState* drawState, GrColor color) {
288 this->set(drawState, color);
298 void set(GrDrawState* drawState, GrColor color) {
300 fDrawState = drawState;
640 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();
GrDefaultPathRenderer.cpp 234 target->drawState()->setDefaultVertexAttribs();
353 GrDrawState* drawState = target->drawState();
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->getRenderTarget())
    [all...]
GrDrawState.cpp 420 void GrDrawState::AutoViewMatrixRestore::set(GrDrawState* drawState,
425 if (NULL == drawState || preconcatMatrix.isIdentity()) {
428 fDrawState = drawState;
430 fViewMatrix = drawState->getViewMatrix();
431 drawState->fCommon.fViewMatrix.preConcat(preconcatMatrix);
437 bool GrDrawState::AutoViewMatrixRestore::setIdentity(GrDrawState* drawState) {
440 if (NULL == drawState) {
444 if (drawState->getViewMatrix().isIdentity()) {
448 fViewMatrix = drawState->getViewMatrix();
449 if (0 == drawState->numTotalStages())
    [all...]
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...]
GrInOrderDrawBuffer.cpp 91 static void set_vertex_attributes(GrDrawState* drawState,
106 drawState->setVertexAttribs<kRectPosColorUVAttribs>(3);
109 drawState->setVertexAttribs<kRectPosColorUVAttribs>(2);
112 drawState->setVertexAttribs<kRectPosUVAttribs>(2);
114 drawState->setVertexAttribs<kRectPosUVAttribs>(1);
126 GrDrawState* drawState = this->drawState();
128 GrColor color = drawState->getColor();
131 set_vertex_attributes(drawState,
132 this->caps()->dualSourceBlendingSupport() || drawState->hasSolidCoverage()
    [all...]
GrOvalRenderer.cpp 335 GrDrawState* drawState = target->drawState();
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();
442 bool isAxisAlignedEllipse = drawState->getViewMatrix().rectStaysRect()
    [all...]
GrSWMaskHelper.cpp 175 GrDrawState* drawState = target->drawState();
178 if (!avmr.setIdentity(drawState)) {
181 GrDrawState::AutoRestoreEffects are(drawState);
195 maskMatrix.preConcat(drawState->getViewMatrix());
197 drawState->addCoverageEffect(
  /external/skia/src/gpu/
GrStencilAndCoverPathRenderer.cpp 68 GrDrawState* drawState = target->drawState();
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...]
GrClipMaskManager.cpp 37 GrDrawState* drawState = gpu->drawState();
38 GrAssert(drawState);
47 mat.preConcat(drawState->getViewMatrix());
51 drawState->addCoverageEffect(
120 GrDrawState* drawState = fGpu->drawState();
122 const GrRenderTarget* rt = drawState->getRenderTarget();
126 bool ignoreClip = !drawState->isClipState() || clipDataIn->fClipStack->isWideOpen();
180 are->set(fGpu->drawState());
    [all...]
GrTextContext.cpp 28 GrDrawState* drawState = fDrawTarget->drawState();
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->setColor(fPaint.getColor())
    [all...]
GrPathRenderer.h 122 GrAssert(target->drawState()->getStencil().isDisabled() ||
165 GrDrawState* drawState = target->drawState();
173 drawState->setStencil(kIncrementStencil);
174 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
GrDrawState.h 153 AutoVertexAttribRestore(GrDrawState* drawState) {
154 GrAssert(NULL != drawState);
155 fDrawState = drawState;
156 fVAPtr = drawState->fCommon.fVAPtr;
157 fVACount = drawState->fCommon.fVACount;
286 AutoColorRestore(GrDrawState* drawState, GrColor color) {
288 this->set(drawState, color);
298 void set(GrDrawState* drawState, GrColor color) {
300 fDrawState = drawState;
640 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();
GrDefaultPathRenderer.cpp 234 target->drawState()->setDefaultVertexAttribs();
353 GrDrawState* drawState = target->drawState();
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->getRenderTarget())
    [all...]
GrDrawState.cpp 420 void GrDrawState::AutoViewMatrixRestore::set(GrDrawState* drawState,
425 if (NULL == drawState || preconcatMatrix.isIdentity()) {
428 fDrawState = drawState;
430 fViewMatrix = drawState->getViewMatrix();
431 drawState->fCommon.fViewMatrix.preConcat(preconcatMatrix);
437 bool GrDrawState::AutoViewMatrixRestore::setIdentity(GrDrawState* drawState) {
440 if (NULL == drawState) {
444 if (drawState->getViewMatrix().isIdentity()) {
448 fViewMatrix = drawState->getViewMatrix();
449 if (0 == drawState->numTotalStages())
    [all...]
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...]
GrInOrderDrawBuffer.cpp 91 static void set_vertex_attributes(GrDrawState* drawState,
106 drawState->setVertexAttribs<kRectPosColorUVAttribs>(3);
109 drawState->setVertexAttribs<kRectPosColorUVAttribs>(2);
112 drawState->setVertexAttribs<kRectPosUVAttribs>(2);
114 drawState->setVertexAttribs<kRectPosUVAttribs>(1);
126 GrDrawState* drawState = this->drawState();
128 GrColor color = drawState->getColor();
131 set_vertex_attributes(drawState,
132 this->caps()->dualSourceBlendingSupport() || drawState->hasSolidCoverage()
    [all...]
GrOvalRenderer.cpp 335 GrDrawState* drawState = target->drawState();
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();
442 bool isAxisAlignedEllipse = drawState->getViewMatrix().rectStaysRect()
    [all...]

Completed in 552 milliseconds

1 2