174 {
175 if (!fInitialized) {
179 if (img) {
182 }
186 if (img) {
191 }
193 fInitialized = true;
194 }
195
197
199
201
202 SkShaders::Blend(mode, fLinearGradientShader, fColorBitmapShader),
203
204 SkShaders::Blend(mode, fLinearGradientShader, fAlpha8BitmapShader),
205 };
206 if (fUseLocalMatrix) {
207 for (unsigned i = 0; i < std::size(shaders); ++i) {
208 shaders[i] = shaders[i] ? shaders[i]->makeWithLocalMatrix(lm) : nullptr;
209 }
210 }
211
214
216
217 for (
size_t y = 0;
y < std::size(shaders); ++
y) {
219 for (int alpha = 0xFF; alpha > 0; alpha -= 0x28) {
220 paint.setAlpha(alpha);
221 paint.setShader(shaders[
y]);
223
225 }
228 }
229 }
@ kDstOver
r = d + (1-da)*s
constexpr SkColor SK_ColorYELLOW
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
static const SkMatrix & I()
static sk_sp< SkShader > make_linear_gradient_shader(int length)
static void draw_color_bm(SkBitmap *bm, int length)
static void draw_alpha8_bm(SkBitmap *bm, int length)
SK_API sk_sp< SkImage > RasterFromBitmap(const SkBitmap &bitmap)
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 mode
static SkRect MakeIWH(int w, int h)
constexpr float height() const
constexpr float width() const