Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d64d68d9 authored by Mike Reed's avatar Mike Reed Committed by Android (Google) Code Review
Browse files

Merge "drawBitmapMatrix is deprecated, code work-around"

parents fe6a5ae9 70ffbf9e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -562,7 +562,9 @@ void SkiaCanvas::drawBitmap(const SkBitmap& bitmap, float left, float top, const
}

void SkiaCanvas::drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) {
    mCanvas->drawBitmapMatrix(bitmap, matrix, paint);
    SkAutoCanvasRestore acr(mCanvas, true);
    mCanvas->concat(matrix);
    mCanvas->drawBitmap(bitmap, 0, 0, paint);
}

void SkiaCanvas::drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop,