/* * Copyright 2023 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file.
*/ #ifndef SkTriColorShader_DEFINED #define SkTriColorShader_DEFINED
// This gets called for each triangle, without re-calling appendStages. bool update(const SkMatrix& ctmInv, const SkPoint pts[], const SkPMColor4f colors[], int index0, int index1, int index2);
private: bool isOpaque() const override { return fIsOpaque; } // For serialization. This will never be called.
Factory getFactory() const override { return nullptr; } constchar* getTypeName() const override { return nullptr; }
struct Matrix43 { float fMat[12]; // column major
// Pass a by value, so we don't have to worry about aliasing with this void setConcat(const Matrix43 a, const SkMatrix& b) {
SkASSERT(!b.hasPerspective());
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.