/external/skia/bench/ |
D | GlyphQuadFillBench.cpp | 58 GrAtlasSubRun* subRun = fBlob->subRunList().front().testingOnly_atlasSubRun(); in onPerCanvasPreDraw() local 59 SkASSERT(subRun); in onPerCanvasPreDraw() 60 subRun->testingOnly_packedGlyphIDToGrGlyph(&fCache); in onPerCanvasPreDraw() 61 fVertices.reset(new char[subRun->vertexStride(drawMatrix) * subRun->glyphCount() * 4]); in onPerCanvasPreDraw() 65 GrAtlasSubRun* subRun = fBlob->subRunList().front().testingOnly_atlasSubRun(); in onDraw() local 66 SkASSERT(subRun); in onDraw() 74 subRun->fillVertexData(fVertices.get(), 0, subRun->glyphCount(), in onDraw()
|
/external/skqp/src/gpu/text/ |
D | GrTextBlob.h | 185 const SubRun& subRun = run.fSubRunInfo[subRunIndex]; in computeSubRunBounds() local 186 *outBounds = subRun.vertexBounds(); in computeSubRunBounds() 246 std::unique_ptr<GrDrawOp> test_makeOp(int glyphCount, uint16_t run, uint16_t subRun, 411 SubRun& subRun = this->fSubRunInfo.back(); in setSubRunHasW() local 412 subRun.setHasWCoord(hasWCoord); in setSubRunHasW() 420 SubRun* subRun = this->pushBackSubRun(*fARGBFallbackDescriptor, fColor); in initARGBFallback() local 421 subRun->setMaskFormat(kARGB_GrMaskFormat); in initARGBFallback() 422 subRun->setFallback(); in initARGBFallback() 423 return subRun; in initARGBFallback() 458 SubRun& subRun = fSubRunInfo.back(); in setSubRunHasDistanceFields() local [all …]
|
D | GrTextBlob.cpp | 167 const SubRun& info, int glyphCount, uint16_t run, uint16_t subRun, in makeOp() argument 192 geometry.fSubRun = subRun; in makeOp() 319 for (int subRun = 0; subRun <= lastSubRun; subRun++) { in flush() local 320 const SubRun& info = run.fSubRunInfo[subRun]; in flush() 340 this->computeSubRunBounds(&subRunBounds, runIndex, subRun, viewMatrix, x, y, in flush() 354 auto op = this->makeOp(info, glyphCount, runIndex, subRun, viewMatrix, x, y, in flush() 372 int glyphCount, uint16_t run, uint16_t subRun, const SkMatrix& viewMatrix, in test_makeOp() argument 376 const GrTextBlob::SubRun& info = fRuns[run].fSubRunInfo[subRun]; in test_makeOp() 378 return this->makeOp(info, glyphCount, run, subRun, viewMatrix, x, y, emptyRect, in test_makeOp()
|
/external/skia/src/gpu/text/ |
D | GrTextBlob.h | 72 GrAtlasSubRunOwner subRun) const = 0; 127 Iterator(GrSubRun* subRun) : fPtr{subRun} { } in Iterator() 138 void append(GrSubRunOwner subRun) { in append() 139 GrSubRunOwner* newTail = &subRun->fNext; in append() 140 *fTail = std::move(subRun); in append() 308 void draw(GrAtlasSubRunOwner subRun);
|
D | GrTextBlob.cpp | 1547 for (const GrSubRun& subRun : fSubRunList) { in canReuse() local 1548 if (!subRun.canReuse(paint, drawMatrix)) { in canReuse() 1567 GrSubRunOwner subRun = addSingle(drawable, strikeSpec, format, this, &fAlloc); in addMultiMaskFormat() local 1568 if (subRun != nullptr) { in addMultiMaskFormat() 1569 fSubRunList.append(std::move(subRun)); in addMultiMaskFormat() 2408 void GrSubRunNoCachePainter::draw(GrAtlasSubRunOwner subRun) { in draw() argument 2409 if (subRun == nullptr) { in draw() 2412 GrAtlasSubRun* subRunPtr = subRun.get(); in draw() 2414 fClip, fViewMatrix, fGlyphRunList, fPaint, fSDC, std::move(subRun)); in draw()
|
/external/skia/src/gpu/ops/ |
D | GrAtlasTextOp.cpp | 110 auto GrAtlasTextOp::Geometry::MakeForBlob(const GrAtlasSubRun& subRun, in MakeForBlob() argument 120 return new(geo) Geometry{subRun, in MakeForBlob() 285 const GrAtlasSubRun& subRun = geo->fSubRun; in onPrepareDraws() local 286 SkASSERTF((int) subRun.vertexStride(geo->fDrawMatrix) == vertexStride, in onPrepareDraws() 288 (int)subRun.vertexStride(geo->fDrawMatrix), vertexStride); in onPrepareDraws() 290 const int subRunEnd = subRun.glyphCount(); in onPrepareDraws() 295 auto[ok, glyphsRegenerated] = subRun.regenerateAtlas(subRunCursor, regenEnd, target); in onPrepareDraws() 518 GrAtlasSubRun* subRun = blob->subRunList().front().testingOnly_atlasSubRun(); in CreateOpTestingOnly() local 519 SkASSERT(subRun); in CreateOpTestingOnly() 521 std::tie(std::ignore, op) = subRun->makeAtlasTextOp( in CreateOpTestingOnly()
|
D | GrAtlasTextOp.h | 47 Geometry(const GrAtlasSubRun& subRun, in Geometry() 54 : fSubRun{subRun} in Geometry() 65 static Geometry* MakeForBlob(const GrAtlasSubRun& subRun,
|
/external/skqp/src/core/ |
D | SkGlyphRunPainter.cpp | 646 SubRun* subRun = &fSubRunInfo.back(); in switchSubRunIfNeededAndAppendGlyph() local 647 if (fInitialized && subRun->maskFormat() != format) { in switchSubRunIfNeededAndAppendGlyph() 648 subRun = pushBackSubRun(fDescriptor, fColor); in switchSubRunIfNeededAndAppendGlyph() 649 subRun->setStrike(strike); in switchSubRunIfNeededAndAppendGlyph() 651 subRun->setStrike(strike); in switchSubRunIfNeededAndAppendGlyph() 655 subRun->setMaskFormat(format); in switchSubRunIfNeededAndAppendGlyph() 656 subRun->setNeedsTransform(needsTransform); in switchSubRunIfNeededAndAppendGlyph() 657 subRun->appendGlyph(glyph, destRect); in switchSubRunIfNeededAndAppendGlyph() 703 auto subRun = fRun->initARGBFallback(); in generateFromGlyphRunList() local 710 subRun->setStrike(strike); in generateFromGlyphRunList()
|
/external/skia/src/gpu/ |
D | GrSurfaceDrawContext.cpp | 419 for (const GrSubRun& subRun : blob->subRunList()) { in drawGlyphRunListWithCache() local 420 subRun.draw(clip, viewMatrix, glyphRunList, paint, this); in drawGlyphRunListWithCache()
|