5#ifndef FLUTTER_IMPELLER_RENDERER_COMPUTE_TESSELLATOR_H_
6#define FLUTTER_IMPELLER_RENDERER_COMPUTE_TESSELLATOR_H_
8#include "flutter/fml/macros.h"
69 const std::shared_ptr<Context>& context,
76 Scalar stroke_width_ = 1.0f;
79 Scalar miter_limit_ = 4.0f;
80 Scalar cubic_accuracy_ = .1f;
81 Scalar quad_tolerance_ = .1f;
std::function< void(Status)> CompletionCallback
A utility that generates triangles of the specified fill type given a path.
static constexpr size_t kMaxCubicCount
static constexpr size_t kMaxComponentCount
ComputeTessellator & SetStrokeJoin(Join value)
ComputeTessellator & SetStrokeCap(Cap value)
static constexpr size_t kMaxQuadCount
ComputeTessellator & SetMiterLimit(Scalar value)
static constexpr size_t kMaxLineCount
ComputeTessellator & SetStrokeWidth(Scalar value)
ComputeTessellator & SetStyle(Style value)
ComputeTessellator & SetQuadraticTolerance(Scalar value)
ComputeTessellator & SetCubicAccuracy(Scalar value)
Status Tessellate(const Path &path, HostBuffer &host_buffer, const std::shared_ptr< Context > &context, BufferView vertex_buffer, BufferView vertex_buffer_count, const CommandBuffer::CompletionCallback &callback=nullptr) const
Generates triangles from the path. If the data needs to be synchronized back to the CPU,...
Paths are lightweight objects that describe a collection of linear, quadratic, or cubic segments....
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback