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

Commit 4f7c380d authored by Derek Sollenberger's avatar Derek Sollenberger Committed by Android (Google) Code Review
Browse files

Merge "Reverting until we can find a better way to address this issue without...

Merge "Reverting until we can find a better way to address this issue without affecting nine-patches with large stretchable areas."
parents d5a9fd59 09a22e33
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -160,14 +160,6 @@ void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds,
        return;
    }
    
    // if the nine patch is bigger than the dst on a given axis we cannot
    // stretch properly so just draw the bitmap as best as possible and return
    if (bitmap.width() >= bounds.width() || bitmap.height() >= bounds.height())
    {
        canvas->drawBitmapRect(bitmap, NULL, bounds, paint);
        return;
    }

    // should try a quick-reject test before calling lockPixels 

    SkAutoLockPixels alp(bitmap);