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