Revert[2] of guard to remove DrawBitmapRectFlags
This reverts commit 91110195a2eee170c11885da9d16f94b00a39f87.
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1240753003
diff --git a/src/utils/SkNinePatch.cpp b/src/utils/SkNinePatch.cpp
index ce8d480..4a5308b 100644
--- a/src/utils/SkNinePatch.cpp
+++ b/src/utils/SkNinePatch.cpp
@@ -136,7 +136,7 @@
const int numYStretch = (numYDivs + 1) >> 1;
if (numXStretch < 1 && numYStretch < 1) {
- canvas->drawBitmapRect(bitmap, NULL, bounds, paint);
+ canvas->drawBitmapRect(bitmap, bounds, paint);
return;
}
@@ -293,7 +293,7 @@
s.fRight = srcX[x+1];
d.fLeft = dstX[x];
d.fRight = dstX[x+1];
- canvas->drawBitmapRect(bitmap, &s, d, paint);
+ canvas->drawBitmapRect(bitmap, s, d, paint);
}
}
}