| Index: tests/PictureTest.cpp
|
| diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
|
| index eb0c6a8f0e6fe408acca8da3c40f222603aea662..9bd64eb4dfc19b8a1abb98139b55b1d75f88af53 100644
|
| --- a/tests/PictureTest.cpp
|
| +++ b/tests/PictureTest.cpp
|
| @@ -1198,12 +1198,17 @@ static void draw_bitmaps(const SkBitmap bitmap, SkCanvas* canvas) {
|
| const SkPaint paint;
|
| const SkRect rect = { 5.0f, 5.0f, 8.0f, 8.0f };
|
| const SkIRect irect = { 2, 2, 3, 3 };
|
| + int divs[] = { 2, 3 };
|
| + SkCanvas::NinePatchDivs npDivs;
|
| + npDivs.fXCount = npDivs.fYCount = 2;
|
| + npDivs.fXDivs = npDivs.fYDivs = divs;
|
|
|
| // Don't care what these record, as long as they're legal.
|
| canvas->drawBitmap(bitmap, 0.0f, 0.0f, &paint);
|
| canvas->drawBitmapRect(bitmap, rect, rect, &paint, SkCanvas::kStrict_SrcRectConstraint);
|
| canvas->drawBitmapNine(bitmap, irect, rect, &paint);
|
| canvas->drawBitmap(bitmap, 1, 1); // drawSprite
|
| + canvas->drawBitmapNine(bitmap, npDivs, rect, &paint);
|
| }
|
|
|
| static void test_draw_bitmaps(SkCanvas* canvas) {
|
|
|