// -- VertexFiller --------------------------------------------------------------------------------- // The VertexFiller assumes that all points, glyph atlas entries, and bounds are created with // respect to the CreationMatrix. This assumes that mapping any point, mask or bounds through the // CreationMatrix will result in the proper device position. In order to draw using an arbitrary // PositionMatrix, calculate a // // viewDifference = [PositionMatrix] * [CreationMatrix] ^ -1. // // The viewDifference is used to map all points, masks and bounds to position to the device // respecting the PositionMatrix. class VertexFiller {
public:
VertexFiller(skgpu::MaskFormat maskFormat, const SkMatrix &creationMatrix,
SkRect creationBounds,
SkSpan<const SkPoint> leftTop, bool canDrawDirect);
// Return true if the positionMatrix represents an integer translation. Return the device // bounding box of all the glyphs. If the bounding box is empty, then something went singular // and this operation should be dropped.
std::tuple<bool, SkRect> deviceRectAndCheckTransform(const SkMatrix &positionMatrix) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.