Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index 1bf8cbdb736962aec6104b1e3dcaa35d90cd50d8..6a6a7a92d645ac56bcb6d3e702cbf4c5e89a237e 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -977,7 +977,7 @@ |
SkPaint paint; |
paint.setImageFilter(blur); |
- canvas->drawBitmap(bitmap, 0, 0, &paint); |
+ canvas->drawSprite(bitmap, 0, 0, &paint); |
} |
DEF_TEST(HugeBlurImageFilter, reporter) { |
@@ -1067,7 +1067,7 @@ |
SkPaint paint; |
paint.setImageFilter(xfermodeNoFg); |
- canvas->drawBitmap(bitmap, 0, 0, &paint); // drawSprite |
+ canvas->drawSprite(bitmap, 0, 0, &paint); |
uint32_t pixel; |
SkImageInfo info = SkImageInfo::Make(1, 1, kBGRA_8888_SkColorType, kUnpremul_SkAlphaType); |
@@ -1075,12 +1075,12 @@ |
REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN); |
paint.setImageFilter(xfermodeNoBg); |
- canvas->drawBitmap(bitmap, 0, 0, &paint); // drawSprite |
+ canvas->drawSprite(bitmap, 0, 0, &paint); |
canvas->readPixels(info, &pixel, 4, 0, 0); |
REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN); |
paint.setImageFilter(xfermodeNoFgNoBg); |
- canvas->drawBitmap(bitmap, 0, 0, &paint); // drawSprite |
+ canvas->drawSprite(bitmap, 0, 0, &paint); |
canvas->readPixels(info, &pixel, 4, 0, 0); |
REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN); |
} |
@@ -1128,7 +1128,7 @@ |
canvas.clear(0x0); |
canvas.readPixels(info, &pixel, 4, 25, 25); |
canvas.saveLayer(&bounds1, nullptr); |
- canvas.drawBitmap(bitmap, 20, 20, &filterPaint); // drawSprite |
+ canvas.drawSprite(bitmap, 20, 20, &filterPaint); |
canvas.restore(); |
canvas.readPixels(info, &pixel, 4, 25, 25); |