Index: bench/ETCBitmapBench.cpp |
diff --git a/bench/ETCBitmapBench.cpp b/bench/ETCBitmapBench.cpp |
index e5ec44f2de820bdb4da78691a81f8e20714ccdb5..529f5f69da49e9c3d88d200825e5f83bdf5aa037 100644 |
--- a/bench/ETCBitmapBench.cpp |
+++ b/bench/ETCBitmapBench.cpp |
@@ -89,13 +89,10 @@ protected: |
SkAutoDataUnref fPKMData; |
private: |
- SkData *loadPKM() { |
- SkString resourcePath = GetResourcePath(); |
- SkString filename = SkOSPath::SkPathJoin(resourcePath.c_str(), |
- "mandrill_128.pkm"); |
- |
+ SkData* loadPKM() { |
+ SkString pkmFilename = GetResourcePath("mandrill_128.pkm"); |
// Expand the data |
- SkAutoDataUnref fileData(SkData::NewFromFileName(filename.c_str())); |
+ SkAutoDataUnref fileData(SkData::NewFromFileName(pkmFilename.c_str())); |
if (NULL == fileData) { |
SkDebugf("Could not open the file. Did you forget to set the resourcePath?\n"); |
return NULL; |