/third_party/flutter/skia/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() 96 textureCoords = SkTAddOffset<uint16_t>(textureCoords, vertexStride); in regen_texcoords() 99 textureCoords = SkTAddOffset<uint16_t>(textureCoords, vertexStride); in regen_texcoords() 102 textureCoords = SkTAddOffset<uint16_t>(textureCoords, vertexStride); in regen_texcoords() [all …]
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrDrawAtlasOp.cpp | 104 size_t vertexStride = 2 * sizeof(SkPoint); in DrawAtlasOp() local 108 vertexStride += sizeof(GrColor); in DrawAtlasOp() 113 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in DrawAtlasOp() 136 *(reinterpret_cast<GrColor*>(currVertex + vertexStride + sizeof(SkPoint))) = grColor; in DrawAtlasOp() 137 *(reinterpret_cast<GrColor*>(currVertex + 2 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOp() 139 *(reinterpret_cast<GrColor*>(currVertex + 3 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOp() 148 currVertex += vertexStride; in DrawAtlasOp() 154 currVertex += vertexStride; in DrawAtlasOp() 160 currVertex += vertexStride; in DrawAtlasOp() 166 currVertex += vertexStride; in DrawAtlasOp() [all …]
|
D | GrAtlasTextOp.cpp | 176 size_t vertexStride, int glyphCount) { in clip_quads() argument 180 reinterpret_cast<const SkPoint*>(blobVertices + 3 * vertexStride); in clip_quads() 188 memcpy(currVertex, blobVertices, 4 * vertexStride); in clip_quads() 189 currVertex += 4 * vertexStride; in clip_quads() 195 size_t coordOffset = vertexStride - 2*sizeof(uint16_t); in clip_quads() 197 auto* blobCoordsRB = reinterpret_cast<const uint16_t*>(blobVertices + 3 * vertexStride + in clip_quads() 260 currVertex += vertexStride; in clip_quads() 269 currVertex += vertexStride; in clip_quads() 278 currVertex += vertexStride; in clip_quads() 287 currVertex += vertexStride; in clip_quads() [all …]
|
D | GrMeshDrawOp.cpp | 20 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in PatternHelper() argument 23 this->init(target, primitiveType, vertexStride, std::move(indexBuffer), verticesPerRepetition, in PatternHelper() 28 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in init() argument 38 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 65 GrMeshDrawOp::QuadHelper::QuadHelper(Target* target, size_t vertexStride, int quadsToDraw) { in QuadHelper() argument 71 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(quadIndexBuffer), in QuadHelper()
|
D | GrAALinearizingConvexPathRenderer.cpp | 200 size_t vertexStride, void* vertices, int indexCount, uint16_t* indices) const { in recordDraw() argument 206 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in recordDraw() 212 memcpy(verts, vertices, vertexCount * vertexStride); in recordDraw() 241 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 248 uint8_t* vertices = (uint8_t*) sk_malloc_throw(maxVertices * vertexStride); in onPrepareDraws() 264 target, gp, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws() 270 if (maxVertices * vertexStride > SK_MaxS32) { in onPrepareDraws() 275 vertices = (uint8_t*) sk_realloc_throw(vertices, maxVertices * vertexStride); in onPrepareDraws() 288 extract_verts(tess, vertices + vertexStride * vertexCount, in onPrepareDraws() 295 this->recordDraw(target, std::move(gp), vertexCount, vertexStride, vertices, indexCount, in onPrepareDraws()
|
D | GrMeshDrawOp.h | 37 PatternHelper(Target*, GrPrimitiveType, size_t vertexStride, 50 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, 65 QuadHelper(Target* target, size_t vertexStride, int quadsToDraw); 136 virtual void putBackVertices(int vertices, size_t vertexStride) = 0;
|
D | GrDrawVerticesOp.cpp | 58 size_t vertexStride, 291 size_t vertexStride = gp->vertexStride(); in drawVolatile() local 294 void* verts = target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex); in drawVolatile() 314 vertexStride, in drawVolatile() 360 size_t vertexStride = gp->vertexStride(); in drawNonVolatile() local 362 fVertexCount * vertexStride, GrGpuBufferType::kVertex, kStatic_GrAccessPattern); in drawNonVolatile() 384 vertexStride, in drawNonVolatile() 405 size_t vertexStride, in fillBuffers() argument 441 SkASSERT(sizeof(V) == vertexStride); in fillBuffers() 488 verts = (void*)((intptr_t)verts + vertexStride); in fillBuffers()
|
D | GrTessellatingPathRenderer.cpp | 258 void draw(Target* target, sk_sp<const GrGeometryProcessor> gp, size_t vertexStride) { in draw() argument 296 StaticVertexAllocator allocator(vertexStride, rp, canMapVB); in draw() 313 void drawAA(Target* target, sk_sp<const GrGeometryProcessor> gp, size_t vertexStride) { in drawAA() argument 323 DynamicVertexAllocator allocator(vertexStride, target); in drawAA() 365 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 367 this->drawAA(target, std::move(gp), vertexStride); in onPrepareDraws() 369 this->draw(target, std::move(gp), vertexStride); in onPrepareDraws()
|
/third_party/skia/src/gpu/ops/ |
D | DrawAtlasOp.cpp | 120 size_t vertexStride = 2 * sizeof(SkPoint); in DrawAtlasOpImpl() local 124 vertexStride += sizeof(GrColor); in DrawAtlasOpImpl() 129 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in DrawAtlasOpImpl() 153 *(reinterpret_cast<GrColor*>(currVertex + vertexStride + sizeof(SkPoint))) = grColor; in DrawAtlasOpImpl() 154 *(reinterpret_cast<GrColor*>(currVertex + 2 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOpImpl() 156 *(reinterpret_cast<GrColor*>(currVertex + 3 * vertexStride + sizeof(SkPoint))) = in DrawAtlasOpImpl() 165 currVertex += vertexStride; in DrawAtlasOpImpl() 171 currVertex += vertexStride; in DrawAtlasOpImpl() 177 currVertex += vertexStride; in DrawAtlasOpImpl() 183 currVertex += vertexStride; in DrawAtlasOpImpl() [all …]
|
D | GrMeshDrawOp.cpp | 69 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in PatternHelper() argument 72 this->init(target, primitiveType, vertexStride, std::move(indexBuffer), verticesPerRepetition, in PatternHelper() 77 size_t vertexStride, sk_sp<const GrBuffer> indexBuffer, in init() argument 87 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 118 size_t vertexStride, in QuadHelper() argument 125 this->init(target, GrPrimitiveType::kTriangles, vertexStride, std::move(indexBuffer), in QuadHelper()
|
D | AALinearizingConvexPathRenderer.cpp | 177 int vertexCount, size_t vertexStride, void* vertices, in recordDraw() argument 184 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in recordDraw() 190 memcpy(verts, vertices, vertexCount * vertexStride); in recordDraw() 214 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() local 221 uint8_t* vertices = (uint8_t*) sk_malloc_throw(maxVertices * vertexStride); in onPrepareDraws() 236 this->recordDraw(target, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws() 242 if (maxVertices * vertexStride > SK_MaxS32) { in onPrepareDraws() 247 vertices = (uint8_t*) sk_realloc_throw(vertices, maxVertices * vertexStride); in onPrepareDraws() 269 extract_verts(tess, localCoordsMatrix, vertices + vertexStride * vertexCount, in onPrepareDraws() 276 this->recordDraw(target, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
|
D | GrMeshDrawOp.h | 55 PatternHelper(GrMeshDrawTarget*, GrPrimitiveType, size_t vertexStride, 69 void init(GrMeshDrawTarget*, GrPrimitiveType, size_t vertexStride, 85 QuadHelper(GrMeshDrawTarget*, size_t vertexStride, int quadsToDraw);
|
D | AtlasTextOp.cpp | 249 const int vertexStride = (int)flushInfo.fGeometryProcessor->vertexStride(); in onPrepareDraws() local 253 const int quadSize = vertexStride * kVerticesPerGlyph; in onPrepareDraws() 267 vertexStride, in onPrepareDraws() 283 SkASSERTF((int) subRun.vertexStride(geo->fDrawMatrix) == vertexStride, in onPrepareDraws() 285 (int)subRun.vertexStride(geo->fDrawMatrix), vertexStride); in onPrepareDraws()
|
D | DrawVerticesOp.cpp | 277 size_t vertexStride() const { in vertexStride() function in skgpu::v1::DrawVerticesOp::__anon2d6083510111::DrawVerticesOpImpl 384 SkASSERT(this->vertexStride() == gp->vertexStride()); in makeGP() 405 size_t vertexStride = this->vertexStride(); in onPrepareDraws() local 409 target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex)}; in onPrepareDraws() 465 SkMatrixPriv::MapPointsWithStride(mesh.fViewMatrix, posBase, vertexStride, in onPrepareDraws()
|
/third_party/skia/experimental/graphite/src/mtl/ |
D | MtlGraphicsPipeline.h | 35 size_t vertexStride() const { return fVertexStride; } in vertexStride() function 40 size_t vertexStride, in GraphicsPipeline() argument 43 , fVertexStride(vertexStride) in GraphicsPipeline()
|
/third_party/flutter/skia/tests/ |
D | PrimitiveProcessorTest.cpp | 111 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 112 QuadHelper helper(target, vertexStride, 1); in onPrepareDraws() 114 SkPointPriv::SetRectTriStrip(vertices, 0.f, 0.f, 1.f, 1.f, vertexStride); in onPrepareDraws()
|
D | OnFlushCallbackTest.cpp | 112 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 124 void* vertices = target->makeVertexSpace(vertexStride, 4, &vertexBuffer, &firstVertex); in onPrepareDraws() 140 SkPointPriv::SetRectTriStrip(position, fRect, vertexStride); in onPrepareDraws() 146 color = (GrColor*)((intptr_t)color + vertexStride); in onPrepareDraws() 154 coords = (SkPoint*)((intptr_t) coords + vertexStride); in onPrepareDraws()
|
/third_party/flutter/skia/bench/ |
D | VertexColorSpaceBench.cpp | 165 size_t vertexStride = gp->vertexStride(); in onPrepareDraws() local 169 void* verts = target->makeVertexSpace(vertexStride, kVertexCount, &vertexBuffer, in onPrepareDraws() 181 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws() 194 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws() 213 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws()
|
/third_party/skia/src/gpu/gl/ |
D | GrGLProgram.cpp | 39 int vertexStride, in Make() argument 52 vertexStride, in Make() 71 int vertexStride, in GrGLProgram() argument 81 , fVertexStride(vertexStride) in GrGLProgram()
|
D | GrGLProgram.h | 65 int vertexStride, 111 int vertexStride() const { return fVertexStride; } in vertexStride() function 138 int vertexStride,
|
/third_party/skia/bench/ |
D | VertexColorSpaceBench.cpp | 203 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() local 207 void* verts = target->makeVertexSpace(vertexStride, kVertexCount, &vertexBuffer, in onPrepareDraws() 219 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws() 232 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws() 251 SkASSERT(sizeof(V) == vertexStride); in onPrepareDraws()
|
/third_party/skia/tests/ |
D | PrimitiveProcessorTest.cpp | 149 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() local 150 QuadHelper helper(target, vertexStride, 1); in onPrepareDraws() 152 SkPointPriv::SetRectTriStrip(vertices, 0.f, 0.f, 1.f, 1.f, vertexStride); in onPrepareDraws()
|
/third_party/skia/src/gpu/text/ |
D | GrTextBlob.cpp | 480 size_t vertexStride(const SkMatrix& drawMatrix) const override; 579 size_t DirectMaskSubRun::vertexStride(const SkMatrix&) const { in vertexStride() function in __anon0f093dcf0111::DirectMaskSubRun 796 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 800 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 806 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 810 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 882 size_t vertexStride(const SkMatrix& drawMatrix) const override; 1023 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 1032 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() 1043 SkASSERT(sizeof(Quad) == this->vertexStride(positionMatrix) * kVerticesPerGlyph); in fillVertexData() [all …]
|
/third_party/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 …]
|
/third_party/flutter/skia/src/gpu/gl/ |
D | GrGLProgram.h | 63 int vertexStride, 128 int vertexStride() const { return fVertexStride; } in vertexStride() function
|