/external/skia/src/gpu/ |
D | GrBatch.cpp | 49 void* GrBatch::InstancedHelper::init(GrBatchTarget* batchTarget, GrPrimitiveType primType, in init() argument 53 SkASSERT(batchTarget); in init() 60 void* vertices = batchTarget->makeVertSpace(vertexStride, vertexCount, in init() 76 void* GrBatch::QuadHelper::init(GrBatchTarget* batchTarget, size_t vertexStride, int quadsToDraw) { in init() argument 78 batchTarget->resourceProvider()->refQuadIndexBuffer()); in init() 83 return this->INHERITED::init(batchTarget, kTriangles_GrPrimitiveType, vertexStride, in init()
|
D | GrTestBatch.h | 50 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 51 batchTarget->initDraw(fGeometryProcessor, pipeline); in generateGeometry() 61 fGeometryProcessor->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 63 this->onGenerateGeometry(batchTarget, pipeline); in generateGeometry() 83 virtual void onGenerateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) = 0;
|
D | GrBatchAtlas.cpp | 273 inline void GrBatchAtlas::updatePlot(GrBatchTarget* batchTarget, AtlasID* id, BatchPlot* plot) { in updatePlot() argument 279 if (batchTarget->isIssued(plot->lastUploadToken())) { in updatePlot() 280 plot->setLastUploadToken(batchTarget->asapToken()); in updatePlot() 282 batchTarget->upload(uploader); in updatePlot() 287 bool GrBatchAtlas::addToAtlas(AtlasID* id, GrBatchTarget* batchTarget, in addToAtlas() argument 298 this->updatePlot(batchTarget, id, plot); in addToAtlas() 309 if (batchTarget->isIssued(plot->lastUseToken())) { in addToAtlas() 314 this->updatePlot(batchTarget, id, plot); in addToAtlas() 325 if (plot->lastUseToken() == batchTarget->currentToken()) { in addToAtlas() 345 newPlot->setLastUploadToken(batchTarget->currentToken()); in addToAtlas() [all …]
|
D | GrAADistanceFieldPathRenderer.cpp | 179 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 202 this->initDraw(batchTarget, dfProcessor, pipeline); in generateGeometry() 211 void* vertices = batchTarget->makeVertSpace(vertexStride, in generateGeometry() 216 flushInfo.fIndexBuffer.reset(batchTarget->resourceProvider()->refQuadIndexBuffer()); in generateGeometry() 253 if (!this->addPathToAtlas(batchTarget, in generateGeometry() 269 atlas->setLastUseToken(args.fPathData->fID, batchTarget->currentToken()); in generateGeometry() 275 this->writePathVertices(batchTarget, in generateGeometry() 287 this->flush(batchTarget, &flushInfo); in generateGeometry() 311 bool addPathToAtlas(GrBatchTarget* batchTarget, in addPathToAtlas() argument 413 bool success = atlas->addToAtlas(&id, batchTarget, width, height, dfStorage.get(), in addPathToAtlas() [all …]
|
D | GrBatch.h | 120 void* init(GrBatchTarget* batchTarget, GrPrimitiveType, size_t vertexStride, 125 void issueDraw(GrBatchTarget* batchTarget) { in issueDraw() argument 127 batchTarget->draw(fVertices); in issueDraw() 143 void* init(GrBatchTarget* batchTarget, size_t vertexStride, int quadsToDraw);
|
D | GrAAHairLinePathRenderer.cpp | 717 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override; 791 void AAHairlineBatch::generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) { in generateGeometry() argument 826 batchTarget->caps(), in generateGeometry() 834 batchTarget->caps(), in generateGeometry() 859 ref_lines_index_buffer(batchTarget->resourceProvider())); in generateGeometry() 860 batchTarget->initDraw(lineGP, pipeline); in generateGeometry() 868 lineGP->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 876 batchTarget->makeVertSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex)); in generateGeometry() 894 batchTarget->draw(vertices); in generateGeometry() 903 ref_quads_index_buffer(batchTarget->resourceProvider())); in generateGeometry() [all …]
|
D | GrAARectRenderer.cpp | 88 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 100 batchTarget->initDraw(gp, pipeline); in generateGeometry() 110 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 119 batchTarget->resourceProvider())); in generateGeometry() 121 void* vertices = helper.init(batchTarget, kTriangles_GrPrimitiveType, vertexStride, in generateGeometry() 141 helper.issueDraw(batchTarget); in generateGeometry() 444 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 458 batchTarget->initDraw(gp, pipeline); in generateGeometry() 468 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 482 GetIndexBuffer(batchTarget->resourceProvider(), this->miterStroke())); in generateGeometry() [all …]
|
D | GrRectBatch.cpp | 82 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 104 batchTarget->initDraw(gp, pipeline); in generateGeometry() 114 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 122 void* vertices = helper.init(batchTarget, vertexStride, instanceCount); in generateGeometry() 158 helper.issueDraw(batchTarget); in generateGeometry()
|
D | GrDefaultPathRenderer.cpp | 253 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 264 batchTarget->initDraw(gp, pipeline); in generateGeometry() 274 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 321 void* verts = batchTarget->makeVertSpace(vertexStride, maxVertices, in generateGeometry() 334 indices = batchTarget->makeIndexSpace(maxIndices, &indexBuffer, &firstIndex); in generateGeometry() 374 batchTarget->draw(vertices); in generateGeometry() 377 batchTarget->putBackIndices((size_t)(maxIndices - indexOffset)); in generateGeometry() 378 batchTarget->putBackVertices((size_t)(maxVertices - vertexOffset), (size_t)vertexStride); in generateGeometry()
|
D | GrOvalRenderer.cpp | 688 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 699 batchTarget->initDraw(gp, pipeline); in generateGeometry() 709 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 715 CircleVertex* verts = reinterpret_cast<CircleVertex*>(helper.init(batchTarget, vertexStride, in generateGeometry() 753 helper.issueDraw(batchTarget); in generateGeometry() 912 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 923 batchTarget->initDraw(gp, pipeline); in generateGeometry() 933 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 940 helper.init(batchTarget, vertexStride, instanceCount)); in generateGeometry() 982 helper.issueDraw(batchTarget); in generateGeometry() [all …]
|
D | GrAAConvexPathRenderer.cpp | 783 void generateGeometryLinesOnly(GrBatchTarget* batchTarget, const GrPipeline* pipeline) { in generateGeometryLinesOnly() argument 796 batchTarget->initDraw(gp, pipeline); in generateGeometryLinesOnly() 804 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometryLinesOnly() 828 void* verts = batchTarget->makeVertSpace(vertexStride, tess.numPts(), in generateGeometryLinesOnly() 838 uint16_t* idxs = batchTarget->makeIndexSpace(tess.numIndices(), in generateGeometryLinesOnly() 852 batchTarget->draw(info); in generateGeometryLinesOnly() 856 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 859 this->generateGeometryLinesOnly(batchTarget, pipeline); in generateGeometry() 876 batchTarget->initDraw(quadProcessor, pipeline); in generateGeometry() 884 quadProcessor->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() [all …]
|
D | GrCommandBuilder.h | 75 GrBatchTarget* batchTarget() { return fCommands.batchTarget(); } in batchTarget() function
|
D | GrTargetCommands.h | 227 DrawBatch(State* state, GrBatch* batch, GrBatchTarget* batchTarget) in DrawBatch() 231 , fBatchTarget(batchTarget) { in DrawBatch() 264 GrBatchTarget* batchTarget() { return &fBatchTarget; } in batchTarget() function
|
D | GrBatchFontCache.h | 137 GrBatchTarget* batchTarget, in addToAtlas() argument 141 return this->getAtlas(format)->addToAtlas(id, batchTarget, width, height, image, loc); in addToAtlas()
|
D | GrContext.cpp | 437 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 444 batchTarget->initDraw(gp, pipeline); in generateGeometry() 454 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 470 void* verts = batchTarget->makeVertSpace(vertexStride, vertexCount, in generateGeometry() 498 batchTarget->draw(vertices); in generateGeometry() 785 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 791 batchTarget->initDraw(gp, pipeline); in generateGeometry() 801 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 813 void* verts = batchTarget->makeVertSpace(vertexStride, this->vertexCount(), in generateGeometry() 826 indices = batchTarget->makeIndexSpace(this->indexCount(), &indexBuffer, &firstIndex); in generateGeometry() [all …]
|
D | GrAtlasTextContext.cpp | 1515 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 1550 this->initDraw(batchTarget, gp, pipeline); in generateGeometry() 1556 void* vertices = batchTarget->makeVertSpace(vertexStride, in generateGeometry() 1561 flushInfo.fIndexBuffer.reset(batchTarget->resourceProvider()->refQuadIndexBuffer()); in generateGeometry() 1658 !strike->addGlyphToAtlas(batchTarget, glyph, scaler)) { in generateGeometry() 1659 this->flush(batchTarget, &flushInfo); in generateGeometry() 1660 this->initDraw(batchTarget, gp, pipeline); in generateGeometry() 1663 SkDEBUGCODE(bool success =) strike->addGlyphToAtlas(batchTarget, in generateGeometry() 1669 batchTarget->currentToken()); in generateGeometry() 1714 batchTarget->currentToken(), in generateGeometry() [all …]
|
D | GrReorderCommandBuilder.cpp | 45 this->batchTarget())); in recordDrawBatch()
|
D | GrBatchFontCache.cpp | 206 bool GrBatchTextStrike::addGlyphToAtlas(GrBatchTarget* batchTarget, GrGlyph* glyph, in addGlyphToAtlas() argument 235 bool success = fBatchFontCache->addToAtlas(this, &glyph->fID, batchTarget, glyph->fMaskFormat, in addGlyphToAtlas()
|
D | GrInOrderCommandBuilder.cpp | 39 this->batchTarget())); in recordDrawBatch()
|
D | GrTessellatingPathRenderer.cpp | 1386 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 1416 batchTarget->initDraw(gp, pipeline); in generateGeometry() 1417 gp->initBatchTracker(batchTarget->currentBatchTracker(), fPipelineInfo); in generateGeometry() 1444 batchTarget->makeVertSpace(stride, count, &vertexBuffer, &firstVertex)); in generateGeometry() 1460 batchTarget->draw(vertices); in generateGeometry() 1462 batchTarget->putBackVertices((size_t)(count - actualCount), stride); in generateGeometry()
|
/external/skia/gm/ |
D | beziereffects.cpp | 72 void onGenerateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in onGenerateGeometry() argument 76 Vertex* verts = reinterpret_cast<Vertex*>(helper.init(batchTarget, vertexStride, 1)); in onGenerateGeometry() 89 helper.issueDraw(batchTarget); in onGenerateGeometry() 467 void onGenerateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in onGenerateGeometry() argument 471 Vertex* verts = reinterpret_cast<Vertex*>(helper.init(batchTarget, vertexStride, 1)); in onGenerateGeometry() 479 helper.issueDraw(batchTarget); in onGenerateGeometry()
|
D | convexpolyeffect.cpp | 58 void onGenerateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in onGenerateGeometry() argument 62 SkPoint* verts = reinterpret_cast<SkPoint*>(helper.init(batchTarget, vertexStride, 1)); in onGenerateGeometry() 72 helper.issueDraw(batchTarget); in onGenerateGeometry()
|
/external/skia/src/gpu/effects/ |
D | GrDashingEffect.cpp | 302 void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override { in generateGeometry() argument 327 batchTarget->initDraw(gp, pipeline); in generateGeometry() 335 gp->initBatchTracker(batchTarget->currentBatchTracker(), init); in generateGeometry() 540 void* vertices = helper.init(batchTarget, gp->getVertexStride(), totalRectCount); in generateGeometry() 602 helper.issueDraw(batchTarget); in generateGeometry()
|