/external/skia/src/core/ |
D | SkVertices.cpp | 73 fVertices.reset(new (storage) SkVertices); in init() 78 fVertices->fPositions = (SkPoint*)ptr; ptr += sizes.fVSize; in init() 79 fVertices->fTexs = sizes.fTSize ? (SkPoint*)ptr : nullptr; ptr += sizes.fTSize; in init() 80 fVertices->fColors = sizes.fCSize ? (SkColor*)ptr : nullptr; ptr += sizes.fCSize; in init() 81 fVertices->fIndices = sizes.fISize ? (uint16_t*)ptr : nullptr; in init() 82 fVertices->fVertexCnt = vertexCount; in init() 83 fVertices->fIndexCnt = indexCount; in init() 84 fVertices->fMode = mode; in init() 89 if (fVertices) { in detach() 90 fVertices->fBounds.set(fVertices->fPositions, fVertices->fVertexCnt); in detach() [all …]
|
/external/skia/src/gpu/ops/ |
D | GrTessellatingPathRenderer.cpp | 71 , fVertices(nullptr) { in StaticVertexAllocator() 81 fVertices = fVertexBuffer->map(); in lock() 83 fVertices = sk_malloc_throw(vertexCount * stride()); in lock() 85 return fVertices; in lock() 91 fVertexBuffer->updateData(fVertices, actualCount * stride()); in unlock() 92 sk_free(fVertices); in unlock() 94 fVertices = nullptr; in unlock() 101 void* fVertices; member in __anonf59bf3f70111::StaticVertexAllocator 110 , fVertices(nullptr) {} in DynamicVertexAllocator() 113 fVertices = fTarget->makeVertexSpace(stride(), vertexCount, &fVertexBuffer, &fFirstVertex); in lock() [all …]
|
D | GrDrawVerticesOp.h | 76 sk_sp<SkVertices> fVertices; member 82 return fVertices->hasTexCoords() && !fIgnoreTexCoords; in hasExplicitLocalCoords() 86 return fVertices->hasColors() && !fIgnoreColors; in hasPerVertexColors() 92 return fMeshes[0].fVertices->hasIndices(); in isIndexed()
|
D | GrDrawVerticesOp.cpp | 50 mesh.fVertices = std::move(vertices); in GrDrawVerticesOp() 68 this->setTransformedBounds(mesh.fVertices->bounds(), viewMatrix, HasAABloat::kNo, zeroArea); in GrDrawVerticesOp() 182 int indexCount = mesh.fVertices->indexCount(); in onPrepareDraws() 184 *indices++ = mesh.fVertices->indices()[j] + vertexOffset; in onPrepareDraws() 187 int vertexCount = mesh.fVertices->vertexCount(); in onPrepareDraws() 188 const SkPoint* positions = mesh.fVertices->positions(); in onPrepareDraws() 189 const SkColor* colors = mesh.fVertices->colors(); in onPrepareDraws() 190 const SkPoint* localCoords = mesh.fVertices->texCoords(); in onPrepareDraws() 263 if (fMeshes[0].fVertices->hasIndices() != that->fMeshes[0].fVertices->hasIndices()) { in onCombineIfPossible()
|
D | GrDefaultPathRenderer.cpp | 216 uint16_t currentIndex() const { return fCurVert - fVertices; } in currentIndex() 227 fVertices = static_cast<SkPoint*>(fTarget->makeVertexSpaceAtLeast(fVertexStride, in allocNewBuffers() 246 fCurVert = fVertices; in allocNewBuffers() 263 int vertexCount = fCurVert - fVertices; in emitMeshAndPutBackReserve() 283 if (fCurVert + vertsNeeded > fVertices + fVerticesInChunk || in needSpace() 292 SkPoint subpathStartPt = fVertices[fSubpathIndexStart]; in needSpace() 317 SkPoint* fVertices; member in __anonee0b1f2d0111::PathGeoBuilder
|
/external/skia/bench/ |
D | GLVertexAttributesBench.cpp | 57 SkTArray<unsigned char> fVertices; member in GLVertexAttributesBench 173 fVertices.reset(static_cast<int>(kVerticesPerTri * kNumTri * fStride)); in setup() 175 unsigned char* ptr = &fVertices[static_cast<int>(i * kVerticesPerTri * fStride)]; in setup() 227 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, fVertices.count(), fVertices.begin(), in glDraw()
|
/external/skia/src/utils/ |
D | SkShadowUtils.cpp | 231 return fEntries[i].fVertices; in find() 248 fSize -= fEntries[i].fVertices->approximateSize(); in add() 251 fEntries[i].fVertices = vertices; in add() 260 sk_sp<SkVertices> fVertices; member 320 sk_sp<SkVertices> fVertices; member 339 findContext->fVertices = in FindVisitor() 341 if (findContext->fVertices) { in FindVisitor() 408 bool foundInCache = SkToBool(context.fVertices); in draw_shadow() 410 vertices = std::move(context.fVertices); in draw_shadow()
|
/external/skia/include/core/ |
D | SkVertices.h | 56 bool isValid() const { return fVertices != nullptr; } in isValid() 75 sk_sp<SkVertices> fVertices; variable
|
/external/skia/src/gpu/text/ |
D | GrAtlasTextBlob_regenInOp.cpp | 204 intptr_t vertex = reinterpret_cast<intptr_t>(fVertices); in regenInOp() 330 *vertices = fVertices + info.vertexStartIndex(); in regenInOp()
|
D | GrAtlasTextBlob.cpp | 37 cacheBlob->fVertices = sizeof(GrAtlasTextBlob) + in Make() 39 cacheBlob->fGlyphs = reinterpret_cast<GrGlyph**>(cacheBlob->fVertices + verticesCount); in Make() 107 intptr_t vertex = reinterpret_cast<intptr_t>(this->fVertices + subRun->vertexEndIndex()); in appendGlyph()
|
D | GrAtlasTextBlob.h | 533 unsigned char* fVertices; variable
|
/external/skia/tools/debugger/ |
D | SkDrawCommand.h | 707 sk_sp<SkVertices> fVertices;
|
D | SkDrawCommand.cpp | 3433 , fVertices(std::move(vertices)) in SkDrawVerticesCommand() 3443 canvas->drawVertices(fVertices, fBlendMode, fPaint); in execute()
|