Definition at line 103 of file lumafilter.cpp.
◆ getISize()
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString LumaFilterGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void LumaFilterGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 123 of file lumafilter.cpp.
123 {
131 };
132 struct {
135 } shaders[] = {
136 { nullptr, nullptr },
137 { nullptr, fGr2 },
138 { fGr1, nullptr },
139 { fGr1, fGr2 },
140 };
141
146 }
147
152 draw_scene(canvas, fFilter, modes[
m], shaders[
i].fShader1,
153 shaders[
i].fShader2);
155 }
157 }
158 }
SK_API const char * SkBlendMode_Name(SkBlendMode blendMode)
@ kSrcOver
r = s + (1-sa)*d
@ kSrcATop
r = s*da + d*(1-sa)
@ kDstATop
r = d*sa + s*(1-da)
@ kDstOver
r = d + (1-da)*s
void translate(SkScalar dx, SkScalar dy)
static void draw_scene(SkCanvas *canvas, const sk_sp< SkColorFilter > &filter, SkBlendMode mode, const sk_sp< SkShader > &s1, const sk_sp< SkShader > &s2)
static void draw_label(SkCanvas *canvas, const char *label, const SkPoint &offset)
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 constexpr SkPoint Make(float x, float y)
◆ onOnceBeforeDraw()
void LumaFilterGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 105 of file lumafilter.cpp.
105 {
108 SkPoint g1Points[] = { { 0, 0 }, { 0, 100 } };
111
117 }
static constexpr SkColor SkColorSetA(SkColor c, U8CPU a)
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
static sk_sp< SkColorFilter > Make()
The documentation for this class was generated from the following file: