diff options
Diffstat (limited to 'samplecode/SampleSubpixelTranslate.cpp')
-rw-r--r-- | samplecode/SampleSubpixelTranslate.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/samplecode/SampleSubpixelTranslate.cpp b/samplecode/SampleSubpixelTranslate.cpp index 41a0f156c1..4652bc37ad 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; |