Index: tests/CachedDecodingPixelRefTest.cpp |
diff --git a/tests/CachedDecodingPixelRefTest.cpp b/tests/CachedDecodingPixelRefTest.cpp |
index 92e9d785491ef3dc349dc36bd8c980f64f1acf5e..b3eb5327d91291fe001aab9cef1e09889f0fdfa1 100644 |
--- a/tests/CachedDecodingPixelRefTest.cpp |
+++ b/tests/CachedDecodingPixelRefTest.cpp |
@@ -350,7 +350,7 @@ DEF_TEST(Image_NewFromGenerator, r) { |
SkCanvas canvas(bitmap); |
const SkColor kDefaultColor = 0xffabcdef; |
canvas.clear(kDefaultColor); |
- image->draw(&canvas, 0, 0, NULL); |
+ canvas.drawImage(image, 0, 0, NULL); |
if (TestImageGenerator::kSucceedGetPixels_TestType == test) { |
REPORTER_ASSERT( |
r, TestImageGenerator::Color() == *bitmap.getAddr32(0, 0)); |