Definition at line 96 of file SkottieGM.cpp.
◆ SkottieColorizeGM()
SkottieColorizeGM::SkottieColorizeGM |
( |
const char * |
name, |
|
|
const char * |
resource |
|
) |
| |
|
inline |
Definition at line 98 of file SkottieGM.cpp.
101 {}
static SkString resource(SkPDFResourceType type, int index)
DEF_SWITCHES_START aot vmservice shared library name
◆ getISize()
SkISize SkottieColorizeGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString SkottieColorizeGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 104 of file SkottieGM.cpp.
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
◆ onAnimate()
bool SkottieColorizeGM::onAnimate |
( |
double |
nanos | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 132 of file SkottieGM.cpp.
132 {
133 if (!fAnimation) {
134 return false;
135 }
136
139 return true;
140 }
void seek(SkScalar t, sksg::InvalidationController *ic=nullptr)
◆ onChar()
bool SkottieColorizeGM::onChar |
( |
SkUnichar |
uni | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 142 of file SkottieGM.cpp.
142 {
149 };
150
151 if (uni == 'c') {
153 for (
const auto&
prop : fColorProps) {
154 fPropManager->setColor(
prop,
kColors[fColorIndex]);
155 }
156 for (
const auto&
prop : fTextProps) {
157 auto txtval = fPropManager->getText(
prop);
158 txtval.fFillColor =
kColors[fColorIndex];
159 fPropManager->setText(
prop, txtval);
160 }
161 return true;
162 }
163
164 return false;
165 }
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorCYAN
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
static SkScalar prop(SkScalar radius, SkScalar newSize, SkScalar oldSize)
◆ onDraw()
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 121 of file SkottieGM.cpp.
121 {
122 if (!fAnimation) {
123 *errorMsg = "No animation";
125 }
126
130 }
void render(SkCanvas *canvas, const SkRect *dst=nullptr) const
static constexpr SkRect MakeWH(float w, float h)
◆ onOnceBeforeDraw()
void SkottieColorizeGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 108 of file SkottieGM.cpp.
108 {
110 fPropManager = std::make_unique<skottie_utils::CustomPropertyManager>();
113 .setPropertyObserver(fPropManager->getPropertyObserver())
116 fColorProps = fPropManager->getColorProps();
117 fTextProps = fPropManager->getTextProps();
118 }
119 }
std::unique_ptr< SkStreamAsset > GetResourceAsStream(const char *resource, bool useFileStream)
sk_sp< Factory > BestAvailable()
DlVertices::Builder Builder
The documentation for this class was generated from the following file: