Definition at line 80 of file composeshader.cpp.
◆ ComposeShaderAlphaGM()
ComposeShaderAlphaGM::ComposeShaderAlphaGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize ComposeShaderAlphaGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString ComposeShaderAlphaGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void ComposeShaderAlphaGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 89 of file composeshader.cpp.
89 {
93 };
94
97
99
102 for (int alpha = 0xFF; alpha > 0; alpha -= 0x28) {
103 paint.setAlphaf(1.0f);
104 paint.setShader(
nullptr);
106
107 paint.setAlpha(alpha);
108 paint.setShader(shaders[
y]);
110
112 }
115 }
116 }
@ kSrcOver
r = s + (1-sa)*d
constexpr SkColor SK_ColorGREEN
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
static sk_sp< SkShader > make_shader(SkBlendMode mode)
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 SkRect MakeXYWH(float x, float y, float w, float h)
constexpr float height() const
constexpr float width() const
The documentation for this class was generated from the following file: