35 if (src.width() <= 0 || src.height() <= 0 ||
36 dst.width() <= 0 || dst.height() <= 0) {
41 if (src.width() == dst.width() && src.height() == dst.height()) {
42 return src.readPixels(dst);
49 bool clampAsIfUnpremul =
false;
57 clampAsIfUnpremul =
true;
61 if (!
bitmap.installPixels(src)) {
83 paint.setShader(std::move(shader));
static sk_sp< SkShader > Make(sk_sp< SkImage >, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix, bool clampAsIfUnpremul=false)