/external/skia/src/gpu/batches/ |
D | GrAAStrokeRectBatch.cpp | 142 size_t vertexStride, 198 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 201 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr) : in onPrepareDraws() 202 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorCoverageAttr)); in onPrepareDraws() 212 void* vertices = helper.init(target, kTriangles_GrPrimitiveType, vertexStride, in onPrepareDraws() 223 i * verticesPerInstance * vertexStride, in onPrepareDraws() 224 vertexStride, in onPrepareDraws() 374 size_t vertexStride, in generateAAStrokeRectGeometry() argument 390 SkPoint* fan1Pos = reinterpret_cast<SkPoint*>(verts + outerVertexNum * vertexStride); in generateAAStrokeRectGeometry() 391 SkPoint* fan2Pos = reinterpret_cast<SkPoint*>(verts + 2 * outerVertexNum * vertexStride); in generateAAStrokeRectGeometry() [all …]
|
D | GrAAFillRectBatch.cpp | 77 size_t vertexStride, in generate_aa_fill_rect_geometry() argument 85 SkPoint* fan1Pos = reinterpret_cast<SkPoint*>(verts + 4 * vertexStride); in generate_aa_fill_rect_geometry() 91 set_inset_fan(fan0Pos, vertexStride, devRect, -SK_ScalarHalf, -SK_ScalarHalf); in generate_aa_fill_rect_geometry() 92 set_inset_fan(fan1Pos, vertexStride, devRect, inset, inset); in generate_aa_fill_rect_geometry() 107 rect.fRight, rect.fBottom, vertexStride); in generate_aa_fill_rect_geometry() 108 viewMatrix.mapPointsWithStride(fan0Pos, vertexStride, 4); in generate_aa_fill_rect_geometry() 114 *((SkPoint*)((intptr_t)fan1Pos + 0 * vertexStride)) = in generate_aa_fill_rect_geometry() 115 *((SkPoint*)((intptr_t)fan0Pos + 0 * vertexStride)) + vec[0] + vec[1]; in generate_aa_fill_rect_geometry() 116 *((SkPoint*)((intptr_t)fan0Pos + 0 * vertexStride)) -= vec[0] + vec[1]; in generate_aa_fill_rect_geometry() 118 *((SkPoint*)((intptr_t)fan1Pos + 1 * vertexStride)) = in generate_aa_fill_rect_geometry() [all …]
|
D | GrDrawAtlasBatch.cpp | 22 size_t vertexStride = sizeof(SkPoint) + sizeof(SkPoint) + in initBatchTracker() local 27 currVertex += vertexStride; in initBatchTracker() 64 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 65 SkASSERT(vertexStride == sizeof(SkPoint) + sizeof(SkPoint) in onPrepareDraws() 70 void* verts = helper.init(target, vertexStride, numQuads); in onPrepareDraws() 100 size_t vertexStride = 2*sizeof(SkPoint); in GrDrawAtlasBatch() local 104 vertexStride += sizeof(GrColor); in GrDrawAtlasBatch() 109 int allocSize = static_cast<int>(4*vertexStride*spriteCount); in GrDrawAtlasBatch() 132 *(reinterpret_cast<GrColor*>(currVertex+vertexStride+sizeof(SkPoint))) = grColor; in GrDrawAtlasBatch() 133 *(reinterpret_cast<GrColor*>(currVertex+2*vertexStride+sizeof(SkPoint))) = grColor; in GrDrawAtlasBatch() [all …]
|
D | GrAALinearizingConvexPathRenderer.cpp | 65 size_t vertexStride, in extract_verts() argument 73 *((SkPoint*)((intptr_t)verts + i * vertexStride)) = tess.point(i); in extract_verts() 83 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = scaledColor; in extract_verts() 85 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in extract_verts() 86 *reinterpret_cast<float*>(verts + i * vertexStride + sizeof(GrColor)) = in extract_verts() 163 size_t vertexStride, void* vertices, int indexCount, uint16_t* indices) const { in draw() argument 170 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in draw() 176 memcpy(verts, vertices, vertexCount * vertexStride); in draw() 206 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 209 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr) : in onPrepareDraws() [all …]
|
D | GrNinePatch.cpp | 96 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 102 void* vertices = helper.init(target, kTriangles_GrPrimitiveType, vertexStride, in onPrepareDraws() 112 i * kRectsPerInstance * kVertsPerRect * vertexStride; in onPrepareDraws() 122 dstR.fRight, dstR.fBottom, vertexStride); in onPrepareDraws() 125 geo.fViewMatrix.mapPointsWithStride(positions, vertexStride, kVertsPerRect); in onPrepareDraws() 130 coords->setRectFan(srcR.fLeft, srcR.fTop, srcR.fRight, srcR.fBottom, vertexStride); in onPrepareDraws() 136 vertColor = (GrColor*) ((intptr_t) vertColor + vertexStride); in onPrepareDraws() 138 verts += kVertsPerRect * vertexStride; in onPrepareDraws()
|
D | GrNonAAFillRectBatch.cpp | 82 size_t vertexStride, in tesselate() argument 90 rect.fRight, rect.fBottom, vertexStride); in tesselate() 93 viewMatrix.mapPointsWithStride(positions, vertexStride, in tesselate() 103 i * vertexStride); in tesselate() 112 vertColor = (GrColor*) ((intptr_t) vertColor + vertexStride); in tesselate() 151 static void Tesselate(intptr_t vertices, size_t vertexStride, const Geometry& geo, in Tesselate() argument 153 tesselate(vertices, vertexStride, geo.fColor, geo.fViewMatrix, geo.fRect, &geo.fLocalQuad); in Tesselate() 202 static void Tesselate(intptr_t vertices, size_t vertexStride, const Geometry& geo, in Tesselate() argument 206 tesselate(vertices, vertexStride, geo.fColor, geo.fViewMatrix, geo.fRect, &quad); in Tesselate() 208 tesselate(vertices, vertexStride, geo.fColor, geo.fViewMatrix, geo.fRect, nullptr); in Tesselate()
|
D | GrVertexBatch.cpp | 20 size_t vertexStride, const GrIndexBuffer* indexBuffer, in init() argument 30 … void* vertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 50 void* GrVertexBatch::QuadHelper::init(Target* target, size_t vertexStride, in init() argument 58 return this->INHERITED::init(target, kTriangles_GrPrimitiveType, vertexStride, in init()
|
D | GrTInstanceBatch.h | 101 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 107 void* vertices = helper.init(target, kTriangles_GrPrimitiveType, vertexStride, in onPrepareDraws() 117 i * Impl::kVertsPerInstance * vertexStride; in onPrepareDraws() 118 Impl::Tesselate(verts, vertexStride, fGeoData[i], fOverrides); in onPrepareDraws()
|
D | GrAtlasTextBatch.cpp | 116 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 117 SkASSERT(vertexStride == GrAtlasTextBlob::GetVertexStride(maskFormat)); in onPrepareDraws() 124 void* vertices = target->makeVertexSpace(vertexStride, in onPrepareDraws() 153 &typeface, &scaler, &desc, vertexStride, args.fViewMatrix, args.fX, in onPrepareDraws() 164 rect.growToInclude(vertex, vertexStride, kVerticesPerGlyph * subRunGlyphCount); in onPrepareDraws()
|
D | GrAADistanceFieldPathRenderer.cpp | 215 size_t vertexStride = dfProcessor->getVertexStride(); in onPrepareDraws() local 216 SkASSERT(vertexStride == 2 * sizeof(SkPoint) + sizeof(GrColor)); in onPrepareDraws() 219 void* vertices = target->makeVertexSpace(vertexStride, in onPrepareDraws() 281 offset += i * kVerticesPerQuad * vertexStride; in onPrepareDraws() 288 vertexStride, in onPrepareDraws() 449 size_t vertexStride, in writePathVertices() argument 471 positions->setRectFan(r.left(), r.top(), r.right(), r.bottom(), vertexStride); in writePathVertices() 475 GrColor* colorPtr = (GrColor*)(offset + sizeof(SkPoint) + i * vertexStride); in writePathVertices() 488 vertexStride); in writePathVertices()
|
D | GrVertexBatch.h | 37 void* init(Target*, GrPrimitiveType, size_t vertexStride, 57 void* init(Target* batchTarget, size_t vertexStride, int quadsToDraw);
|
D | GrAAConvexPathRenderer.cpp | 693 size_t vertexStride, in extract_verts() argument 700 *((SkPoint*)((intptr_t)verts + i * vertexStride)) = tess.point(i); in extract_verts() 710 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = scaledColor; in extract_verts() 712 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in extract_verts() 713 *reinterpret_cast<float*>(verts + i * vertexStride + sizeof(GrColor)) = in extract_verts() 798 size_t vertexStride = gp->getVertexStride(); in prepareLinesOnlyDraws() local 801 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr) : in prepareLinesOnlyDraws() 802 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorCoverageAttr)); in prepareLinesOnlyDraws() 820 void* verts = target->makeVertexSpace(vertexStride, tess.numPts(), &vertexBuffer, in prepareLinesOnlyDraws() 836 extract_verts(tess, verts, vertexStride, args.fColor, idxs, canTweakAlphaForCoverage); in prepareLinesOnlyDraws() [all …]
|
D | GrDrawVerticesBatch.cpp | 102 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 104 SkASSERT(vertexStride == sizeof(SkPoint) + (hasLocalCoords ? sizeof(SkPoint) : 0) in onPrepareDraws() 112 void* verts = target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex); in onPrepareDraws() 154 verts = (void*)((intptr_t)verts + vertexStride); in onPrepareDraws()
|
D | GrNonAAStrokeRectBatch.cpp | 122 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 124 SkASSERT(vertexStride == sizeof(GrDefaultGeoProcFactory::PositionAttr)); in onPrepareDraws() 136 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in onPrepareDraws()
|
D | GrDefaultPathRenderer.cpp | 269 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 270 SkASSERT(vertexStride == sizeof(SkPoint)); in onPrepareDraws() 319 void* verts = target->makeVertexSpace(vertexStride, maxVertices, in onPrepareDraws() 376 target->putBackVertices((size_t)(maxVertices - vertexOffset), (size_t)vertexStride); in onPrepareDraws()
|
D | GrAAHairLinePathRenderer.cpp | 868 size_t vertexStride = lineGP->getVertexStride(); in onPrepareDraws() local 871 target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex)); in onPrepareDraws() 900 size_t vertexStride = sizeof(BezierVertex); in onPrepareDraws() local 902 void *vertices = target->makeVertexSpace(vertexStride, vertexCount, in onPrepareDraws()
|
/external/skia/src/gpu/text/ |
D | GrAtlasTextBlob_regenInBatch.cpp | 22 inline void regen_vertices(intptr_t vertex, const GrGlyph* glyph, size_t vertexStride, in regen_vertices() argument 62 intptr_t texCoordOffset = vertexStride - sizeof(SkIPoint16); in regen_vertices() 81 vertex += vertexStride; in regen_vertices() 100 vertex += vertexStride; in regen_vertices() 119 vertex += vertexStride; in regen_vertices() 148 int glyphCount, size_t vertexStride, in regenInBatch() argument 216 vertex += vertexStride * glyphIdx * GrAtlasTextBatch::kVerticesPerGlyph; in regenInBatch() 217 regen_vertices<regenPos, regenCol, regenTexCoords>(vertex, glyph, vertexStride, in regenInBatch() 252 *glyphCount, vertexStride, color, transX, transY 259 const SkDescriptor** desc, size_t vertexStride, in regenInBatch() argument
|
D | GrAtlasTextBlob.cpp | 94 size_t vertexStride = GetVertexStride(format); in appendGlyph() local 109 vertex += vertexStride; in appendGlyph() 116 vertex += vertexStride; in appendGlyph() 123 vertex += vertexStride; in appendGlyph() 134 vertex += vertexStride; in appendGlyph() 139 vertex += vertexStride; in appendGlyph() 144 vertex += vertexStride; in appendGlyph() 150 subRun->appendVertices(vertexStride); in appendGlyph()
|
D | GrAtlasTextBlob.h | 261 const SkDescriptor** desc, size_t vertexStride, 402 void appendVertices(size_t vertexStride) { in appendVertices() 403 fVertexEndIndex += vertexStride * kVerticesPerGlyph; in appendVertices() 494 int glyphCount, size_t vertexStride,
|
/external/skia/gm/ |
D | beziereffects.cpp | 76 size_t vertexStride = this->geometryProcessor()->getVertexStride(); in generateGeometry() local 77 SkASSERT(vertexStride == sizeof(Vertex)); in generateGeometry() 78 Vertex* verts = reinterpret_cast<Vertex*>(helper.init(target, vertexStride, 1)); in generateGeometry() 463 size_t vertexStride = this->geometryProcessor()->getVertexStride(); in generateGeometry() local 464 SkASSERT(vertexStride == sizeof(Vertex)); in generateGeometry() 465 Vertex* verts = reinterpret_cast<Vertex*>(helper.init(target, vertexStride, 1)); in generateGeometry()
|
D | convexpolyeffect.cpp | 68 size_t vertexStride = this->geometryProcessor()->getVertexStride(); in generateGeometry() local 69 SkASSERT(vertexStride == sizeof(SkPoint)); in generateGeometry() 71 SkPoint* verts = reinterpret_cast<SkPoint*>(helper.init(target, vertexStride, 1)); in generateGeometry()
|
/external/skia/src/gpu/ |
D | GrOvalRenderer.cpp | 678 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 679 SkASSERT(vertexStride == sizeof(CircleVertex)); in onPrepareDraws() 681 CircleVertex* verts = reinterpret_cast<CircleVertex*>(helper.init(target, vertexStride, in onPrepareDraws() 892 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 893 SkASSERT(vertexStride == sizeof(EllipseVertex)); in onPrepareDraws() 895 helper.init(target, vertexStride, instanceCount)); in onPrepareDraws() 1141 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local 1142 SkASSERT(vertexStride == sizeof(DIEllipseVertex)); in onPrepareDraws() 1145 helper.init(target, vertexStride, instanceCount)); in onPrepareDraws() 1428 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local [all …]
|
D | GrBatchFlushState.h | 185 void putBackVertices(int vertices, size_t vertexStride) { in putBackVertices() argument 186 this->state()->putBackVertexSpace(vertices * vertexStride); in putBackVertices()
|
/external/skia/src/gpu/effects/ |
D | GrDashingEffect.cpp | 189 DashCap cap, const size_t vertexStride) { in setup_dashed_rect() argument 193 SkASSERT(vertexStride == sizeof(DashCircleVertex)); in setup_dashed_rect() 209 SkASSERT(kNonRound_DashCap == cap && vertexStride == sizeof(DashLineVertex)); in setup_dashed_rect()
|