Index: samplecode/SampleBitmapRect.cpp |
diff --git a/samplecode/SampleBitmapRect.cpp b/samplecode/SampleBitmapRect.cpp |
index 123bfb8b127c09d9a11774b67c40a9b43dda5cb1..c69fcf4ceb537bcf800ed2bdf265088c7e8929a7 100644 |
--- a/samplecode/SampleBitmapRect.cpp |
+++ b/samplecode/SampleBitmapRect.cpp |
@@ -131,7 +131,8 @@ protected: |
for (int i = 0; i < 2; ++i) { |
paint.setFilterQuality(1 == i ? kLow_SkFilterQuality : kNone_SkFilterQuality); |
- canvas->drawBitmapRectToRect(bitmap, &srcR, fDstR[i], &paint); |
+ canvas->drawBitmapRect(bitmap, &srcR, fDstR[i], &paint, |
+ SkCanvas::kStrict_SrcRectConstraint); |
canvas->drawRect(fDstR[i], paint); |
} |
} |
@@ -225,7 +226,8 @@ protected: |
for (int i = 0; i < 2; ++i) { |
paint.setFilterQuality(1 == i ? kLow_SkFilterQuality : kNone_SkFilterQuality); |
- canvas->drawBitmapRectToRect(fBitmap, &fSrcR, fDstR[i], &paint); |
+ canvas->drawBitmapRect(fBitmap, &fSrcR, fDstR[i], &paint, |
+ SkCanvas::kStrict_SrcRectConstraint); |
canvas->drawRect(fDstR[i], paint); |
} |
} |