/external/skqp/src/gpu/text/ |
D | GrTextBlobVertexRegenerator.cpp | 24 static void regen_positions(char* vertex, size_t vertexStride, SkScalar transX, SkScalar transY) { in regen_positions() argument 29 point = SkTAddOffset<SkPoint>(point, vertexStride); in regen_positions() 33 static void regen_colors(char* vertex, size_t vertexStride, GrColor color) { in regen_colors() argument 36 size_t colorOffset = vertexStride - sizeof(SkIPoint16) - sizeof(GrColor); in regen_colors() 40 vcolor = SkTAddOffset<GrColor>(vcolor, vertexStride); in regen_colors() 44 static void regen_texcoords(char* vertex, size_t vertexStride, const GrGlyph* glyph, in regen_texcoords() argument 48 size_t texCoordOffset = vertexStride - sizeof(SkIPoint16); in regen_texcoords() 83 textureCoords = SkTAddOffset<uint16_t>(textureCoords, vertexStride); in regen_texcoords() 86 textureCoords = SkTAddOffset<uint16_t>(textureCoords, vertexStride); in regen_texcoords() 89 textureCoords = SkTAddOffset<uint16_t>(textureCoords, vertexStride); in regen_texcoords() [all …]
|
/external/skqp/src/gpu/ops/ |
D | GrDrawAtlasOp.cpp | 44 size_t vertexStride = 2 * sizeof(SkPoint); in GrDrawAtlasOp() local 48 vertexStride += sizeof(GrColor); in GrDrawAtlasOp() 53 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in GrDrawAtlasOp() 76 *(reinterpret_cast<GrColor*>(currVertex + vertexStride + sizeof(SkPoint))) = grColor; in GrDrawAtlasOp() 77 *(reinterpret_cast<GrColor*>(currVertex + 2 * vertexStride + sizeof(SkPoint))) = in GrDrawAtlasOp() 79 *(reinterpret_cast<GrColor*>(currVertex + 3 * vertexStride + sizeof(SkPoint))) = in GrDrawAtlasOp() 88 currVertex += vertexStride; in GrDrawAtlasOp() 94 currVertex += vertexStride; in GrDrawAtlasOp() 100 currVertex += vertexStride; in GrDrawAtlasOp() 106 currVertex += vertexStride; in GrDrawAtlasOp() [all …]
|
D | GrAtlasTextOp.cpp | 172 size_t vertexStride, int glyphCount) { in clip_quads() argument 176 reinterpret_cast<const SkPoint*>(blobVertices + 3 * vertexStride); in clip_quads() 184 memcpy(currVertex, blobVertices, 4 * vertexStride); in clip_quads() 185 currVertex += 4 * vertexStride; in clip_quads() 191 size_t coordOffset = vertexStride - 2*sizeof(uint16_t); in clip_quads() 193 auto* blobCoordsRB = reinterpret_cast<const uint16_t*>(blobVertices + 3 * vertexStride + in clip_quads() 240 currVertex += vertexStride; in clip_quads() 249 currVertex += vertexStride; in clip_quads() 258 currVertex += vertexStride; in clip_quads() 267 currVertex += vertexStride; in clip_quads() [all …]
|
D | GrMeshDrawOp.cpp | 24 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in PatternHelper() argument 27 this->init(target, primitiveType, vertexStride, std::move(indexBuffer), verticesPerRepetition, in PatternHelper() 32 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in init() argument 42 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 64 GrMeshDrawOp::QuadHelper::QuadHelper(Target* target, size_t vertexStride, int quadsToDraw) { in QuadHelper() argument 70 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(quadIndexBuffer), in QuadHelper()
|
D | GrAALinearizingConvexPathRenderer.cpp | 198 size_t vertexStride, void* vertices, int indexCount, uint16_t* indices) const { in draw() argument 204 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in draw() 210 memcpy(verts, vertices, vertexCount * vertexStride); in draw() 240 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 247 uint8_t* vertices = (uint8_t*) sk_malloc_throw(maxVertices * vertexStride); in onPrepareDraws() 263 vertexStride, vertices, indexCount, indices); in onPrepareDraws() 269 if (maxVertices * vertexStride > SK_MaxS32) { in onPrepareDraws() 274 vertices = (uint8_t*) sk_realloc_throw(vertices, maxVertices * vertexStride); in onPrepareDraws() 287 extract_verts(tess, vertices + vertexStride * vertexCount, in onPrepareDraws() 295 vertexStride, vertices, indexCount, indices); in onPrepareDraws()
|
D | GrMeshDrawOp.h | 37 PatternHelper(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer>, 48 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer>, 63 QuadHelper(Target* target, size_t vertexStride, int quadsToDraw); 135 virtual void putBackVertices(int vertices, size_t vertexStride) = 0;
|
D | GrTessellatingPathRenderer.cpp | 245 void draw(Target* target, sk_sp<const GrGeometryProcessor> gp, size_t vertexStride) { in draw() argument 283 StaticVertexAllocator allocator(vertexStride, rp, canMapVB); in draw() 300 void drawAA(Target* target, sk_sp<const GrGeometryProcessor> gp, size_t vertexStride) { in drawAA() argument 310 DynamicVertexAllocator allocator(vertexStride, target); in drawAA() 352 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 354 this->drawAA(target, std::move(gp), vertexStride); in onPrepareDraws() 356 this->draw(target, std::move(gp), vertexStride); in onPrepareDraws()
|
D | GrDrawVerticesOp.cpp | 229 size_t vertexStride = gp->vertexStride(); in drawVolatile() local 232 void* verts = target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex); in drawVolatile() 253 vertexStride, in drawVolatile() 302 size_t vertexStride = gp->vertexStride(); in drawNonVolatile() local 303 vertexBuffer = rp->createBuffer(fVertexCount * vertexStride, in drawNonVolatile() 331 vertexStride, in drawNonVolatile() 353 size_t vertexStride, in fillBuffers() argument 392 SkASSERT(sizeof(V) == vertexStride); in fillBuffers() 454 verts = (void*)((intptr_t)verts + vertexStride); in fillBuffers()
|
/external/skia/src/gpu/ops/ |
D | GrDrawAtlasOp.cpp | 121 size_t vertexStride = 2 * sizeof(SkPoint); in DrawAtlasOp() local 125 vertexStride += sizeof(GrColor); in DrawAtlasOp() 130 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in DrawAtlasOp() 153 *(reinterpret_cast<GrColor*>(currVertex + vertexStride + sizeof(SkPoint))) = grColor; in DrawAtlasOp() 154 *(reinterpret_cast<GrColor*>(currVertex + 2 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOp() 156 *(reinterpret_cast<GrColor*>(currVertex + 3 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOp() 165 currVertex += vertexStride; in DrawAtlasOp() 171 currVertex += vertexStride; in DrawAtlasOp() 177 currVertex += vertexStride; in DrawAtlasOp() 183 currVertex += vertexStride; in DrawAtlasOp() [all …]
|
D | GrMeshDrawOp.cpp | 56 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in PatternHelper() argument 59 this->init(target, primitiveType, vertexStride, std::move(indexBuffer), verticesPerRepetition, in PatternHelper() 64 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in init() argument 74 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 103 GrMeshDrawOp::QuadHelper::QuadHelper(Target* target, size_t vertexStride, int quadsToDraw) { in QuadHelper() argument 109 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(indexBuffer), in QuadHelper()
|
D | GrAALinearizingConvexPathRenderer.cpp | 225 int vertexCount, size_t vertexStride, void* vertices, in recordDraw() argument 232 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in recordDraw() 238 memcpy(verts, vertices, vertexCount * vertexStride); in recordDraw() 262 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() local 269 uint8_t* vertices = (uint8_t*) sk_malloc_throw(maxVertices * vertexStride); in onPrepareDraws() 284 this->recordDraw(target, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws() 290 if (maxVertices * vertexStride > SK_MaxS32) { in onPrepareDraws() 295 vertices = (uint8_t*) sk_realloc_throw(vertices, maxVertices * vertexStride); in onPrepareDraws() 317 extract_verts(tess, localCoordsMatrix, vertices + vertexStride * vertexCount, in onPrepareDraws() 324 this->recordDraw(target, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
|
D | GrMeshDrawOp.h | 58 PatternHelper(Target*, GrPrimitiveType, size_t vertexStride, 72 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, 88 QuadHelper(Target* target, size_t vertexStride, int quadsToDraw); 216 virtual void putBackVertices(int vertices, size_t vertexStride) = 0;
|
D | GrAtlasTextOp.cpp | 252 const int vertexStride = (int)flushInfo.fGeometryProcessor->vertexStride(); in onPrepareDraws() local 256 const int quadSize = vertexStride * kVerticesPerGlyph; in onPrepareDraws() 270 vertexStride, in onPrepareDraws() 286 SkASSERTF((int) subRun.vertexStride(geo->fDrawMatrix) == vertexStride, in onPrepareDraws() 288 (int)subRun.vertexStride(geo->fDrawMatrix), vertexStride); in onPrepareDraws()
|
D | GrDrawVerticesOp.cpp | 283 size_t vertexStride() const { in vertexStride() function in __anon119029be0111::DrawVerticesOp 390 SkASSERT(this->vertexStride() == gp->vertexStride()); in makeGP() 409 size_t vertexStride = this->vertexStride(); in onPrepareDraws() local 413 target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex)}; in onPrepareDraws() 469 SkMatrixPriv::MapPointsWithStride(mesh.fViewMatrix, posBase, vertexStride, in onPrepareDraws()
|
/external/skqp/tests/ |
D | PrimitiveProcessorTest.cpp | 103 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 104 QuadHelper helper(target, vertexStride, 1); in onPrepareDraws() 106 SkPointPriv::SetRectTriStrip(vertices, 0.f, 0.f, 1.f, 1.f, vertexStride); in onPrepareDraws()
|
D | OnFlushCallbackTest.cpp | 111 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 123 void* vertices = target->makeVertexSpace(vertexStride, 4, &vertexBuffer, &firstVertex); in onPrepareDraws() 139 SkPointPriv::SetRectTriStrip(position, fRect, vertexStride); in onPrepareDraws() 145 color = (GrColor*)((intptr_t)color + vertexStride); in onPrepareDraws() 153 coords = (SkPoint*)((intptr_t) coords + vertexStride); in onPrepareDraws()
|
/external/skqp/bench/ |
D | VertexColorSpaceBench.cpp | 164 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 168 void* verts = target->makeVertexSpace(vertexStride, kVertexCount, &vertexBuffer, in onPrepareDraws() 180 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws() 193 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws() 212 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws()
|
/external/skia/src/gpu/gl/ |
D | GrGLProgram.h | 64 int vertexStride, 129 int vertexStride() const { return fVertexStride; } in vertexStride() function 156 int vertexStride,
|
D | GrGLProgram.cpp | 38 int vertexStride, in Make() argument 51 vertexStride, in Make() 70 int vertexStride, in GrGLProgram() argument 80 , fVertexStride(vertexStride) in GrGLProgram()
|
/external/skia/tests/ |
D | PrimitiveProcessorTest.cpp | 146 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() local 147 QuadHelper helper(target, vertexStride, 1); in onPrepareDraws() 149 SkPointPriv::SetRectTriStrip(vertices, 0.f, 0.f, 1.f, 1.f, vertexStride); in onPrepareDraws()
|
D | OnFlushCallbackTest.cpp | 140 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() local 152 void* vertices = target->makeVertexSpace(vertexStride, 4, &vertexBuffer, &firstVertex); in onPrepareDraws() 168 SkPointPriv::SetRectTriStrip(position, fRect, vertexStride); in onPrepareDraws() 174 color = (GrColor*)((intptr_t)color + vertexStride); in onPrepareDraws() 182 coords = (SkPoint*)((intptr_t) coords + vertexStride); in onPrepareDraws()
|
/external/skia/bench/ |
D | VertexColorSpaceBench.cpp | 199 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() local 203 void* verts = target->makeVertexSpace(vertexStride, kVertexCount, &vertexBuffer, in onPrepareDraws() 215 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws() 228 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws() 247 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws()
|
/external/skia/src/gpu/text/ |
D | GrTextBlob.cpp | 460 size_t vertexStride(const SkMatrix& drawMatrix) const override; 578 size_t DirectMaskSubRun::vertexStride(const SkMatrix&) const { in vertexStride() function in __anona00be6630111::DirectMaskSubRun 784 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 788 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 794 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 798 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 869 size_t vertexStride(const SkMatrix& drawMatrix) const override; 1008 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 1017 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 1028 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | pa.h | 73 uint32_t vertexStride{0}; // stride of a vertex in simdvector units 95 vertexStride(in_vertexStride), numVertsPerPrim(in_numVertsPerPrim) in PA_STATE() 189 uint32_t vertexStride, 198 SWR_ASSERT(slot < vertexStride); in GetSimdVector() 199 uint32_t offset = index * vertexStride + slot; in GetSimdVector() 207 SWR_ASSERT(slot < vertexStride); in GetSimdVector_simd16() 208 uint32_t offset = index * vertexStride + slot; in GetSimdVector_simd16() 289 SIMDVECTOR* pVertex = &((SIMDVECTOR*)pStreamBase)[cur * vertexStride]; in GetNextVsOutput() 555 SIMDVECTOR* pVertex = &((SIMDVECTOR*)pStreamBase)[vertexIndex * vertexStride]; in GetNextVsOutput() 710 uint32_t vertexStrideBytes = vertexStride * sizeof(SIMDVECTOR); in ComputeOffsets() [all …]
|
/external/skqp/src/gpu/gl/ |
D | GrGLProgram.h | 63 int vertexStride, 128 int vertexStride() const { return fVertexStride; } in vertexStride() function
|