37 surf->getCanvas()->concat(
m);
45 if (
src.colorType() !=
dst.colorType()) {
56 if (
dst.width() !=
w ||
dst.height() !=
h) {
59 if (
w == 0 ||
h == 0) {
64 if (
src.addr() ==
dst.addr()) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kTopLeft_SkEncodedOrigin
static bool SkEncodedOriginSwapsWidthHeight(SkEncodedOrigin origin)
static SkMatrix SkEncodedOriginToMatrix(SkEncodedOrigin origin, int w, int h)
static bool draw_orientation(const SkPixmap &dst, const SkPixmap &src, SkEncodedOrigin origin)
void swap(sk_sp< T > &a, sk_sp< T > &b)
bool installPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, void(*releaseProc)(void *addr, void *context), void *context)
SK_API sk_sp< SkImage > RasterFromBitmap(const SkBitmap &bitmap)
SK_API bool Orient(const SkPixmap &dst, const SkPixmap &src, SkEncodedOrigin origin)
SK_API SkImageInfo SwapWidthHeight(const SkImageInfo &info)
SK_API sk_sp< SkSurface > WrapPixels(const SkImageInfo &imageInfo, void *pixels, size_t rowBytes, const SkSurfaceProps *surfaceProps=nullptr)
SkSamplingOptions(SkFilterMode::kLinear))