Index: gm/etc1bitmap.cpp |
diff --git a/gm/etc1bitmap.cpp b/gm/etc1bitmap.cpp |
index ce0aa7dbad6e3018ff58b404635c88d5383b6b48..cdf8617a35627e317feb96de0ea8e09148265af0 100644 |
--- a/gm/etc1bitmap.cpp |
+++ b/gm/etc1bitmap.cpp |
@@ -93,7 +93,8 @@ |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
SkBitmap bm; |
- SkString filename = SkOSPath::SkPathJoin(INHERITED::gResourcePath, "mandrill_128."); |
+ SkString filename = SkOSPath::SkPathJoin( |
+ INHERITED::gResourcePath.c_str(), "mandrill_128."); |
filename.append(this->fileExtension()); |
SkAutoTUnref<SkData> fileData(SkData::NewFromFileName(filename.c_str())); |
@@ -168,7 +169,8 @@ |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
SkBitmap bm; |
- SkString filename = SkOSPath::SkPathJoin(INHERITED::gResourcePath, "mandrill_128.pkm"); |
+ SkString filename = SkOSPath::SkPathJoin( |
+ INHERITED::gResourcePath.c_str(), "mandrill_128.pkm"); |
SkAutoDataUnref fileData(SkData::NewFromFileName(filename.c_str())); |
if (NULL == fileData) { |