| Index: samplecode/SampleSubpixelTranslate.cpp
|
| diff --git a/samplecode/SampleSubpixelTranslate.cpp b/samplecode/SampleSubpixelTranslate.cpp
|
| index 41a0f156c15c258bd6845bb457bd2c2809dc64e5..4652bc37adde15890e281183f3da0bbc2eea869f 100644
|
| --- a/samplecode/SampleSubpixelTranslate.cpp
|
| +++ b/samplecode/SampleSubpixelTranslate.cpp
|
| @@ -24,13 +24,9 @@ public:
|
| SubpixelTranslateView(const char imageFilename[],
|
| float horizontalVelocity,
|
| float verticalVelocity)
|
| - : fFilename(imageFilename),
|
| - fHorizontalVelocity(horizontalVelocity),
|
| + : fHorizontalVelocity(horizontalVelocity),
|
| fVerticalVelocity(verticalVelocity) {
|
| - SkString resourcePath = GetResourcePath();
|
| - resourcePath.append("/");
|
| - resourcePath.append(fFilename);
|
| -
|
| + SkString resourcePath = GetResourcePath(imageFilename);
|
| SkImageDecoder* codec = NULL;
|
| SkFILEStream stream(resourcePath.c_str());
|
| if (stream.isValid()) {
|
| @@ -50,7 +46,6 @@ public:
|
|
|
| protected:
|
| SkBitmap fBM;
|
| - SkString fFilename;
|
| SkScalar fSize;
|
| float fHorizontalVelocity, fVerticalVelocity;
|
|
|
|
|