DM: paths as implict strings too.
BUG=skia:
Review URL: https://codereview.chromium.org/891823002
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index 67c8e5c..16f7c14 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -21,6 +21,7 @@
};
typedef ImplicitString Error;
typedef ImplicitString Name;
+typedef ImplicitString Path;
struct Src {
// All Srcs must be thread safe.
@@ -60,25 +61,25 @@
class ImageSrc : public Src {
public:
- explicit ImageSrc(SkString path, int subsets = 0);
+ explicit ImageSrc(Path path, int subsets = 0);
Error draw(SkCanvas*) const SK_OVERRIDE;
SkISize size() const SK_OVERRIDE;
Name name() const SK_OVERRIDE;
private:
- SkString fPath;
- int fSubsets;
+ Path fPath;
+ int fSubsets;
};
class SKPSrc : public Src {
public:
- explicit SKPSrc(SkString path);
+ explicit SKPSrc(Path path);
Error draw(SkCanvas*) const SK_OVERRIDE;
SkISize size() const SK_OVERRIDE;
Name name() const SK_OVERRIDE;
private:
- SkString fPath;
+ Path fPath;
};
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/