Index: gm/downsamplebitmap.cpp |
diff --git a/gm/downsamplebitmap.cpp b/gm/downsamplebitmap.cpp |
index a911b83b9fbe5a79d4883dcccd105670a5143f74..f24c92b6e5a759428ee727a7858aee5e46623fcc 100644 |
--- a/gm/downsamplebitmap.cpp |
+++ b/gm/downsamplebitmap.cpp |
@@ -172,11 +172,8 @@ class DownsampleBitmapImageGM: public DownsampleBitmapGM { |
int fSize; |
virtual void make_bitmap() SK_OVERRIDE { |
- SkString resourcePath = GetResourcePath(); |
- resourcePath.append("/"); |
- resourcePath.append(fFilename); |
- |
SkImageDecoder* codec = NULL; |
+ SkString resourcePath = GetResourcePath(fFilename.c_str()); |
SkFILEStream stream(resourcePath.c_str()); |
if (stream.isValid()) { |
codec = SkImageDecoder::Factory(&stream); |