Index: tests/SkImageTest.cpp |
diff --git a/tests/SkImageTest.cpp b/tests/SkImageTest.cpp |
index d5c7eaa819bf7c7bab05b59d89bd25c51128c98d..fabc1fd1461573c63075fb5eac58a46f6193358d 100644 |
--- a/tests/SkImageTest.cpp |
+++ b/tests/SkImageTest.cpp |
@@ -26,7 +26,7 @@ DEF_TEST(SkImageFromBitmap_extractSubset, reporter) { |
canvas.drawIRect(r, p); |
SkBitmap dstBitmap; |
srcBitmap.extractSubset(&dstBitmap, r); |
- image.reset(SkNewImageFromRasterBitmap(dstBitmap, NULL, kUnlocked_SharedPixelRefMode)); |
+ image.reset(SkImage::NewFromBitmap(dstBitmap)); |
} |
SkBitmap tgt; |