/third_party/skia/src/gpu/ |
D | BufferWriter.h | 45 struct VertexWriter : public BufferWriter { struct 48 VertexWriter() = default; argument 49 VertexWriter(void* ptr) : BufferWriter(ptr) {} in VertexWriter() function 50 VertexWriter(const VertexWriter&) = delete; 51 VertexWriter(VertexWriter&& that) { *this = std::move(that); } in VertexWriter() argument 53 VertexWriter& operator=(const VertexWriter&) = delete; argument 54 VertexWriter& operator=(VertexWriter&& that) { 59 bool operator==(const VertexWriter& that) const { return fPtr == that.fPtr; } 66 VertexWriter makeOffset(ptrdiff_t offsetInBytes) const { in makeOffset() argument 122 void writeVertex(int cornerIdx, VertexWriter& w) const { in writeVertex() argument [all …]
|
D | GrColor.h | 115 friend skgpu::VertexWriter& skgpu::operator<<(skgpu::VertexWriter&, const T&); 122 SK_MAYBE_UNUSED inline skgpu::VertexWriter& skgpu::operator<<(skgpu::VertexWriter& w,
|
D | GrVertexChunkArray.h | 53 SK_ALWAYS_INLINE skgpu::VertexWriter appendVertices(int count) { in appendVertices() 66 SK_ALWAYS_INLINE skgpu::VertexWriter appendVertex() { return this->appendVertices(1); } in appendVertex() 87 skgpu::VertexWriter fCurrChunkVertexWriter;
|
D | GrResourceProvider.h | 35 namespace skgpu { struct VertexWriter; } 197 using InitializeBufferFn = void(*)(skgpu::VertexWriter, size_t bufferSize);
|
/third_party/skia/src/gpu/tessellate/ |
D | PatchWriter.h | 66 operator VertexWriter&() { return fVertexWriter; } 68 VertexWriter fVertexWriter; 79 fVertexWriter << VertexWriter::kIEEE_32_infinity; // p3.y=Inf indicates a conic. in ~ConicPatch() 83 operator VertexWriter&() { return fVertexWriter; } 85 VertexWriter fVertexWriter; 97 fVertexWriter.fill(VertexWriter::kIEEE_32_infinity, 2); in ~TrianglePatch() 101 operator VertexWriter&() { return fVertexWriter; } 103 VertexWriter fVertexWriter; 125 VertexWriter appendPatch() { in appendPatch() 126 VertexWriter vertexWriter = fChunker.appendVertex(); in appendPatch() [all …]
|
D | PathCurveTessellator.h | 43 static void WriteFixedVertexBuffer(VertexWriter, size_t bufferSize); 51 static void WriteFixedIndexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteFixedIndexBuffer() 55 static void WriteFixedIndexBufferBaseIndex(VertexWriter, size_t bufferSize, uint16_t baseIndex);
|
D | PathWedgeTessellator.h | 45 static void WriteFixedVertexBuffer(VertexWriter, size_t bufferSize); 54 static void WriteFixedIndexBuffer(VertexWriter vertexWriter, size_t bufferSize);
|
D | PathCurveTessellator.cpp | 134 void PathCurveTessellator::WriteFixedVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteFixedVertexBuffer() 139 SkDEBUGCODE(VertexWriter end = vertexWriter.makeOffset(vertexCount * sizeof(SkPoint));) in WriteFixedVertexBuffer() 168 void PathCurveTessellator::WriteFixedIndexBufferBaseIndex(VertexWriter vertexWriter, in WriteFixedIndexBufferBaseIndex()
|
D | StrokeFixedCountTessellator.cpp | 125 if (VertexWriter writer = fChunkBuilder.appendVertex()) { in writeCircle() 178 } else if (VertexWriter writer = fChunkBuilder.appendVertex()) { in writeStroke() 186 SK_ALWAYS_INLINE void writeDynamicAttribs(VertexWriter* writer, in writeDynamicAttribs() 429 void StrokeFixedCountTessellator::InitializeVertexIDFallbackBuffer(VertexWriter vertexWriter, in InitializeVertexIDFallbackBuffer()
|
D | StrokeFixedCountTessellator.h | 40 static void InitializeVertexIDFallbackBuffer(VertexWriter vertexWriter, size_t bufferSize);
|
D | PathWedgeTessellator.cpp | 250 void PathWedgeTessellator::WriteFixedVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteFixedVertexBuffer() 261 void PathWedgeTessellator::WriteFixedIndexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteFixedIndexBuffer()
|
/third_party/skia/experimental/graphite/src/ |
D | DrawBufferManager.cpp | 36 std::tuple<VertexWriter, BindBufferInfo> DrawBufferManager::getVertexWriter(size_t requiredBytes) { in getVertexWriter() 41 return {VertexWriter(nullptr), bindInfo}; in getVertexWriter() 55 return {VertexWriter(), BindBufferInfo()}; in getVertexWriter() 62 return {VertexWriter(fCurrentVertexBuffer->map()), bindInfo}; in getVertexWriter()
|
D | Renderer.h | 21 struct VertexWriter; 34 virtual void writeVertices(VertexWriter, IndexWriter, const Shape&) const = 0;
|
D | DrawList.h | 30 struct VertexWriter; 221 void writeVertices(VertexWriter, IndexWriter, int renderStep) const;
|
D | DrawBufferManager.h | 28 std::tuple<VertexWriter, BindBufferInfo> getVertexWriter(size_t requiredBytes);
|
/third_party/skia/src/gpu/tessellate/shaders/ |
D | GrTessellationShader.h | 46 static void WriteConicPatch(const SkPoint pts[3], float w, skgpu::VertexWriter* writer) { in WriteConicPatch() 50 *writer << w << skgpu::VertexWriter::kIEEE_32_infinity; in WriteConicPatch() 53 skgpu::VertexWriter writer(patch); in WriteConicPatch()
|
/third_party/skia/experimental/graphite/src/render/ |
D | StencilAndFillPathRenderer.cpp | 75 void writeVertices(VertexWriter vertexWriter, in writeVertices() 78 vertexWriter.writeQuad(VertexWriter::TriStripFromRect(shape.bounds().asSkRect())); in writeVertices()
|
/third_party/skia/src/gpu/geometry/ |
D | GrPathUtils.h | 139 inline void writeLineAsCubic(SkPoint startPt, SkPoint endPt, skgpu::VertexWriter* writer) { in writeLineAsCubic() 148 inline void writeQuadAsCubic(const SkPoint p[3], skgpu::VertexWriter* writer) { in writeQuadAsCubic() 157 skgpu::VertexWriter writer(out); in convertQuadToCubic()
|
D | GrQuad.h | 70 void writeVertex(int cornerIdx, skgpu::VertexWriter& w) const { in writeVertex() 172 template<> struct skgpu::VertexWriter::is_quad<GrQuad> : std::true_type {};
|
/third_party/skia/src/gpu/ops/ |
D | QuadPerEdgeAA.h | 26 struct VertexWriter; 156 typedef void (*WriteQuadProc)(VertexWriter* vertices, const VertexSpec& spec, 164 VertexWriter fVertexWriter;
|
D | AtlasInstancedHelper.cpp | 25 void AtlasInstancedHelper::writeInstanceData(VertexWriter* instanceWriter, in writeInstanceData() 37 VertexWriter::If(fShaderFlags & ShaderFlags::kCheckBounds, in writeInstanceData()
|
D | QuadPerEdgeAA.cpp | 37 void write_quad_generic(VertexWriter* vb, in write_quad_generic() 45 static constexpr auto If = VertexWriter::If<float>; in write_quad_generic() 89 void write_2d_color(VertexWriter* vb, in write_2d_color() 121 void write_2d_uv(VertexWriter* vb, in write_2d_uv() 148 void write_2d_color_uv(VertexWriter* vb, in write_2d_color_uv() 180 void write_2d_cov_uv(VertexWriter* vb, in write_2d_cov_uv() 214 void write_2d_uv_strict(VertexWriter* vb, in write_2d_uv_strict() 242 void write_2d_color_uv_strict(VertexWriter* vb, in write_2d_color_uv_strict() 275 void write_2d_cov_uv_strict(VertexWriter* vb, in write_2d_cov_uv_strict()
|
D | StrokeRectOp.cpp | 564 void generateAAStrokeRectGeometry(VertexWriter& vertices, 644 VertexWriter vertices{ helper.vertices() }; in onPrepareDraws() 796 void AAStrokeRectOp::generateAAStrokeRectGeometry(VertexWriter& vertices, in generateAAStrokeRectGeometry() 816 return VertexWriter::TriFanFromRect(r.makeInset(dx, dy)); in generateAAStrokeRectGeometry() 822 return VertexWriter::If(!tweakAlphaForCoverage, coverage); in generateAAStrokeRectGeometry() 918 vertices.writeQuad(VertexWriter::TriFanFromRect(interiorAABoundary), in generateAAStrokeRectGeometry() 925 vertices.writeQuad(VertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry() 930 vertices.writeQuad(VertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry()
|
D | DrawAtlasPathOp.cpp | 194 if (VertexWriter instanceWriter = flushState->makeVertexSpace( in onPrepare() 199 << VertexWriter::If(fUsesLocalCoords, in onPrepare()
|
/third_party/skia/tools/gpu/ |
D | TestOps.cpp | 203 skgpu::VertexWriter writer{helper.vertices()}; in onPrepareDraws() 204 auto pos = skgpu::VertexWriter::TriStripFromRect(fDrawRect); in onPrepareDraws() 205 auto local = skgpu::VertexWriter::TriStripFromRect(fLocalRect); in onPrepareDraws()
|