10#ifdef SK_USE_DRAWING_MIPMAP_DOWNSAMPLER
40 if (
dst.width() * 2 ==
src.width() &&
dst.height() * 2 ==
src.height()) {
60 bitmap.installPixels(
src.info(),
const_cast<void*
>(
src.addr()),
src.rowBytes());
68 return std::make_unique<DrawDownSampler>();
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
static const SkMatrix & I()
static std::unique_ptr< SkMipmapDownSampler > MakeDownSampler(const SkPixmap &)
void setBlendMode(SkBlendMode mode)
SkSamplingOptions sampling
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkCubicResampler CatmullRom()
virtual void buildLevel(const SkPixmap &dst, const SkPixmap &src)=0