Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / samplecode / SampleSubpixelTranslate.cpp
index 41a0f15..4652bc3 100644 (file)
@@ -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;