Index: samplecode/SamplePicture.cpp |
diff --git a/samplecode/SamplePicture.cpp b/samplecode/SamplePicture.cpp |
index ecc59415a0b54254c5248625390fa085b48a5e03..28256e56752dd392cc838478abfaa4a3447f0e47 100644 |
--- a/samplecode/SamplePicture.cpp |
+++ b/samplecode/SamplePicture.cpp |
@@ -37,9 +37,8 @@ |
static SkBitmap load_bitmap() { |
SkBitmap bm; |
- SkString resourcePath = GetResourcePath(); |
- SkString path = SkOSPath::SkPathJoin(resourcePath.c_str(), "mandrill_512.png"); |
- SkAutoDataUnref data(SkData::NewFromFileName(path.c_str())); |
+ SkString pngFilename = GetResourcePath("mandrill_512.png"); |
+ SkAutoDataUnref data(SkData::NewFromFileName(pngFilename.c_str())); |
if (data.get() != NULL) { |
SkInstallDiscardablePixelRef(SkDecodingImageGenerator::Create( |
data, SkDecodingImageGenerator::Options()), &bm); |