Index: gm/copyTo4444.cpp |
diff --git a/gm/copyTo4444.cpp b/gm/copyTo4444.cpp |
index f790d7fcc1785e4bca6c9ffc659d6dd27a768d3d..635cc7b8344a6d789a0e5d85985cec72dd2e130d 100644 |
--- a/gm/copyTo4444.cpp |
+++ b/gm/copyTo4444.cpp |
@@ -32,7 +32,9 @@ |
virtual void onDraw(SkCanvas* canvas) { |
SkBitmap bm, bm4444; |
- if (!GetResourceAsBitmap("mandrill_512.png", &bm)) { |
+ SkString pngFilename = GetResourcePath("mandrill_512.png"); |
+ if (!SkImageDecoder::DecodeFile(pngFilename.c_str(), &bm, kN32_SkColorType, |
+ SkImageDecoder::kDecodePixels_Mode)) { |
SkDebugf("Could not decode the file. Did you forget to set the " |
"resourcePath?\n"); |
return; |