/external/skia/src/gpu/batches/ |
D | GrStencilAndCoverPathRenderer.cpp | 79 GrPipelineBuilder* pipelineBuilder = args.fPipelineBuilder; in onDrawPath() local 82 SkASSERT(pipelineBuilder->getStencil().isDisabled()); in onDrawPath() 85 SkASSERT(pipelineBuilder->getRenderTarget()->isStencilBufferMultisampled()); in onDrawPath() 86 pipelineBuilder->enableState(GrPipelineBuilder::kHWAntialias_Flag); in onDrawPath() 103 pipelineBuilder->setStencil(kInvertedStencilPass); in onDrawPath() 106 args.fTarget->stencilPath(*pipelineBuilder, viewMatrix, p, p->getFillType()); in onDrawPath() 110 SkRect::MakeLTRB(0, 0, SkIntToScalar(pipelineBuilder->getRenderTarget()->width()), in onDrawPath() 111 SkIntToScalar(pipelineBuilder->getRenderTarget()->height())); in onDrawPath() 126 if (pipelineBuilder->getRenderTarget()->hasMixedSamples()) { in onDrawPath() 127 pipelineBuilder->disableState(GrPipelineBuilder::kHWAntialias_Flag); in onDrawPath() [all …]
|
D | GrDefaultPathRenderer.cpp | 547 GrPipelineBuilder* pipelineBuilder, in internalDrawPath() argument 568 const GrXPFactory* xpFactory = pipelineBuilder->getXPFactory(); in internalDrawPath() 571 SkASSERT(GrPipelineBuilder::kBoth_DrawFace == pipelineBuilder->getDrawFace()); in internalDrawPath() 669 GetPathDevBounds(path, pipelineBuilder->getRenderTarget(), viewMatrix, &devBounds); in internalDrawPath() 672 pipelineBuilder->setDrawFace(drawFace[p]); in internalDrawPath() 674 *pipelineBuilder->stencil() = *passes[p]; in internalDrawPath() 679 pipelineBuilder->setXPFactory(backupXPFactory); in internalDrawPath() 683 SkASSERT(pipelineBuilder->getRenderTarget()); in internalDrawPath() 703 target->drawBatch(*pipelineBuilder, batch); in internalDrawPath() 706 pipelineBuilder->setDisableColorXPFactory(); in internalDrawPath() [all …]
|
/external/skia/src/gpu/ |
D | GrDrawTarget.cpp | 125 bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuilder, in setupDstReadIfNecessary() argument 132 if (!pipelineBuilder.willXPNeedDstTexture(*this->caps(), optimizations)) { in setupDstReadIfNecessary() 136 GrRenderTarget* rt = pipelineBuilder.getRenderTarget(); in setupDstReadIfNecessary() 149 pipelineBuilder.clip().getConservativeBounds(rt->width(), rt->height(), ©Rect); in setupDstReadIfNecessary() 224 void GrDrawTarget::drawBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawBatch* batch) { in drawBatch() argument 228 if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) { in drawBatch() 233 arfps.set(&pipelineBuilder); in drawBatch() 238 if (!this->installPipelineInDrawBatch(&pipelineBuilder, &clip.scissorState(), batch)) { in drawBatch() 285 void GrDrawTarget::stencilPath(const GrPipelineBuilder& pipelineBuilder, in stencilPath() argument 296 if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, nullptr, &clip)) { in stencilPath() [all …]
|
D | GrClipMaskManager.cpp | 52 const GrPipelineBuilder& pipelineBuilder, in draw_non_aa_rect() argument 58 drawTarget->drawBatch(pipelineBuilder, batch); in draw_non_aa_rect() 162 bool GrClipMaskManager::useSWOnlyPath(const GrPipelineBuilder& pipelineBuilder, in useSWOnlyPath() argument 182 if (PathNeedsSWRenderer(this->getContext(), pipelineBuilder.getStencil().isDisabled(), in useSWOnlyPath() 322 bool GrClipMaskManager::setupClipping(const GrPipelineBuilder& pipelineBuilder, in setupClipping() argument 335 GrRenderTarget* rt = pipelineBuilder.getRenderTarget(); in setupClipping() 344 add_rect_to_clip(pipelineBuilder.clip(), *devBounds, &devBoundsClip); in setupClipping() 346 const GrClip& clip = doDevBoundsClip ? devBoundsClip : pipelineBuilder.clip(); in setupClipping() 349 this->setPipelineBuilderStencil(pipelineBuilder, ars); in setupClipping() 363 this->setPipelineBuilderStencil(pipelineBuilder, ars); in setupClipping() [all …]
|
D | GrDrawContext.cpp | 230 GrPipelineBuilder pipelineBuilder(*paint, fRenderTarget, clip); in drawPaint() local 234 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); in drawPaint() 302 GrPipelineBuilder pipelineBuilder(paint, fRenderTarget, clip); in drawRect() local 326 this->internalDrawPath(&pipelineBuilder, viewMatrix, color, true, path, *strokeInfo); in drawRect() 339 pipelineBuilder.setState(GrPipelineBuilder::kSnapVerticesToPixelCenters_Flag, in drawRect() 345 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); in drawRect() 360 GrPipelineBuilder pipelineBuilder(paint, fRenderTarget, clip); in fillRectToRect() local 372 this->drawBatch(&pipelineBuilder, batch); in fillRectToRect() 388 GrPipelineBuilder pipelineBuilder(paint, fRenderTarget, clip); in fillRectWithLocalMatrix() local 399 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); in fillRectWithLocalMatrix() [all …]
|
D | GrSoftwarePathRenderer.cpp | 32 bool get_path_and_clip_bounds(const GrPipelineBuilder* pipelineBuilder, in get_path_and_clip_bounds() argument 38 const GrRenderTarget* rt = pipelineBuilder->getRenderTarget(); in get_path_and_clip_bounds() 43 pipelineBuilder->clip().getConservativeBounds(rt->width(), rt->height(), devClipBounds); in get_path_and_clip_bounds() 70 const GrPipelineBuilder& pipelineBuilder, in draw_non_aa_rect() argument 77 drawTarget->drawBatch(pipelineBuilder, batch); in draw_non_aa_rect() 81 GrPipelineBuilder* pipelineBuilder, in draw_around_inv_path() argument 95 draw_non_aa_rect(target, *pipelineBuilder, color, SkMatrix::I(), rect, invert); in draw_around_inv_path() 100 draw_non_aa_rect(target, *pipelineBuilder, color, SkMatrix::I(), rect, invert); in draw_around_inv_path() 105 draw_non_aa_rect(target, *pipelineBuilder, color, SkMatrix::I(), rect, invert); in draw_around_inv_path() 110 draw_non_aa_rect(target, *pipelineBuilder, color, SkMatrix::I(), rect, invert); in draw_around_inv_path()
|
D | GrPipelineBuilder.cpp | 62 const GrPipelineBuilder* pipelineBuilder) { in set() argument 79 fPipelineBuilder = const_cast<GrPipelineBuilder*>(pipelineBuilder); in set() 80 if (nullptr != pipelineBuilder) { in set() 81 fColorEffectCnt = pipelineBuilder->numColorFragmentProcessors(); in set() 82 fCoverageEffectCnt = pipelineBuilder->numCoverageFragmentProcessors(); in set() 83 SkDEBUGCODE(++pipelineBuilder->fBlockEffectRemovalCnt;) in set()
|
D | GrSWMaskHelper.cpp | 340 GrPipelineBuilder* pipelineBuilder, in DrawToTargetWithPathMask() argument 348 GrPipelineBuilder::AutoRestoreFragmentProcessorState arfps(*pipelineBuilder); in DrawToTargetWithPathMask() 362 pipelineBuilder->addCoverageFragmentProcessor( in DrawToTargetWithPathMask() 370 target->drawBatch(*pipelineBuilder, batch); in DrawToTargetWithPathMask()
|
D | GrPipeline.cpp | 180 void GrPipeline::adjustProgramFromOptimizations(const GrPipelineBuilder& pipelineBuilder, in adjustProgramFromOptimizations() argument 191 *firstColorProcessorIdx = pipelineBuilder.numColorFragmentProcessors(); in adjustProgramFromOptimizations() 199 *firstCoverageProcessorIdx = pipelineBuilder.numCoverageFragmentProcessors(); in adjustProgramFromOptimizations()
|
D | GrDrawTarget.h | 122 void drawPathBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawPathBatchBase* batch); 219 bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder,
|
D | GrSWMaskHelper.h | 96 GrPipelineBuilder* pipelineBuilder,
|
D | GrTest.cpp | 264 void GrDrawContext::internal_drawBatch(const GrPipelineBuilder& pipelineBuilder, in internal_drawBatch() argument 271 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); in internal_drawBatch()
|
/external/skia/tests/ |
D | GLProgramsTest.cpp | 181 static void set_random_xpf(GrPipelineBuilder* pipelineBuilder, GrProcessorTestData* d) { in set_random_xpf() argument 184 pipelineBuilder->setXPFactory(xpf.get()); in set_random_xpf() 234 static void set_random_color_coverage_stages(GrPipelineBuilder* pipelineBuilder, in set_random_color_coverage_stages() argument 244 pipelineBuilder->addColorFragmentProcessor(fp); in set_random_color_coverage_stages() 256 pipelineBuilder->addColorFragmentProcessor(fp); in set_random_color_coverage_stages() 258 pipelineBuilder->addCoverageFragmentProcessor(fp); in set_random_color_coverage_stages() 265 static void set_random_state(GrPipelineBuilder* pipelineBuilder, SkRandom* random) { in set_random_state() argument 273 !pipelineBuilder->getRenderTarget()->isUnifiedMultisampled()) { in set_random_state() 276 pipelineBuilder->enableState(state); in set_random_state() 280 static void set_random_stencil(GrPipelineBuilder* pipelineBuilder, SkRandom* random) { in set_random_stencil() argument [all …]
|
D | TessellatingPathRendererTests.cpp | 238 GrPipelineBuilder pipelineBuilder; in test_path() local 239 pipelineBuilder.setXPFactory( in test_path() 241 pipelineBuilder.setRenderTarget(rt); in test_path() 245 args.fPipelineBuilder = &pipelineBuilder; in test_path()
|
/external/skia/gm/ |
D | convexpolyeffect.cpp | 195 GrPipelineBuilder pipelineBuilder; in onDraw() local 196 pipelineBuilder.setXPFactory( in onDraw() 198 pipelineBuilder.addCoverageFragmentProcessor(fp); in onDraw() 199 pipelineBuilder.setRenderTarget(rt); in onDraw() 208 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw() 241 GrPipelineBuilder pipelineBuilder; in onDraw() local 242 pipelineBuilder.setXPFactory( in onDraw() 244 pipelineBuilder.addCoverageFragmentProcessor(fp); in onDraw() 245 pipelineBuilder.setRenderTarget(rt); in onDraw() 255 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | bigrrectaaeffect.cpp | 84 GrPipelineBuilder pipelineBuilder; in onDraw() local 85 pipelineBuilder.setXPFactory( in onDraw() 93 pipelineBuilder.addCoverageFragmentProcessor(fp); in onDraw() 94 pipelineBuilder.setRenderTarget(rt); in onDraw() 102 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | yuvtorgbeffect.cpp | 118 GrPipelineBuilder pipelineBuilder; in onDraw() local 119 pipelineBuilder.setXPFactory( in onDraw() 130 pipelineBuilder.setRenderTarget(rt); in onDraw() 131 pipelineBuilder.addColorFragmentProcessor(fp); in onDraw() 135 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | texturedomaineffect.cpp | 119 GrPipelineBuilder pipelineBuilder; in onDraw() local 120 pipelineBuilder.setXPFactory( in onDraw() 132 pipelineBuilder.setRenderTarget(rt); in onDraw() 133 pipelineBuilder.addColorFragmentProcessor(fp); in onDraw() 138 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | beziereffects.cpp | 217 GrPipelineBuilder pipelineBuilder; in onDraw() local 218 pipelineBuilder.setXPFactory( in onDraw() 220 pipelineBuilder.setRenderTarget(rt); in onDraw() 229 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw() 358 GrPipelineBuilder pipelineBuilder; in onDraw() local 359 pipelineBuilder.setXPFactory( in onDraw() 361 pipelineBuilder.setRenderTarget(rt); in onDraw() 370 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw() 592 GrPipelineBuilder pipelineBuilder; in onDraw() local 593 pipelineBuilder.setXPFactory( in onDraw() [all …]
|
D | rrects.cpp | 121 GrPipelineBuilder pipelineBuilder; in onDraw() local 122 pipelineBuilder.setXPFactory( in onDraw() 131 pipelineBuilder.addCoverageFragmentProcessor(fp); in onDraw() 132 pipelineBuilder.setRenderTarget(rt); in onDraw() 140 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | constcolorprocessor.cpp | 115 GrPipelineBuilder pipelineBuilder(grPaint, rt, clip); in onDraw() local 116 pipelineBuilder.addColorFragmentProcessor(fp); in onDraw() 121 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
/external/skia/src/gpu/text/ |
D | GrStencilAndCoverTextContext.cpp | 85 GrPipelineBuilder pipelineBuilder(paint, dc->accessRenderTarget(), clip); in drawText() local 87 run.draw(context, dc, &pipelineBuilder, paint.getColor(), viewMatrix, props, 0, 0, in drawText() 118 GrPipelineBuilder pipelineBuilder(paint, dc->accessRenderTarget(), clip); in drawPosText() local 120 run.draw(context, dc, &pipelineBuilder, paint.getColor(), viewMatrix, props, 0, 0, in drawPosText() 225 GrPipelineBuilder pipelineBuilder(paint, dc->accessRenderTarget(), clip); in drawTextBlob() local 229 run->draw(context, dc, &pipelineBuilder, paint.getColor(), viewMatrix, props, x, y, in drawTextBlob() 569 GrPipelineBuilder* pipelineBuilder, in draw() argument 581 pipelineBuilder->setState(GrPipelineBuilder::kHWAntialias_Flag, fFont.isAntiAlias()); in draw() 591 *pipelineBuilder->stencil() = kStencilPass; in draw() 605 SkRect bounds = SkRect::MakeIWH(pipelineBuilder->getRenderTarget()->width(), in draw() [all …]
|
D | GrAtlasTextBlob.cpp | 300 void GrAtlasTextBlob::flushRun(GrDrawContext* dc, GrPipelineBuilder* pipelineBuilder, in flushRun() argument 317 dc->drawBatch(pipelineBuilder, batch); in flushRun() 416 GrPipelineBuilder pipelineBuilder(grPaint, dc->accessRenderTarget(), clip); in flushCached() local 427 this->flushRun(dc, &pipelineBuilder, run, viewMatrix, x, y, color, skPaint, props, in flushCached() 445 GrPipelineBuilder pipelineBuilder(grPaint, dc->accessRenderTarget(), clip); in flushThrowaway() local 449 this->flushRun(dc, &pipelineBuilder, run, viewMatrix, x, y, color, skPaint, props, in flushThrowaway()
|
/external/skia/include/gpu/ |
D | GrDrawContext.h | 266 void internal_drawBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawBatch* batch); 292 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch);
|
/external/skia/src/gpu/effects/ |
D | GrDashingEffect.cpp | 750 const GrPipelineBuilder& pipelineBuilder, GrColor color, in DrawDashLine() argument 755 pipelineBuilder.getRenderTarget()->isUnifiedMultisampled())); in DrawDashLine() 760 target->drawBatch(pipelineBuilder, batch); in DrawDashLine()
|