diff options
Diffstat (limited to 'dm/DMSrcSink.h')
-rw-r--r-- | dm/DMSrcSink.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h index 67c8e5cf4f..16f7c144eb 100644 --- a/dm/DMSrcSink.h +++ b/dm/DMSrcSink.h @@ -21,6 +21,7 @@ struct ImplicitString : public SkString { }; typedef ImplicitString Error; typedef ImplicitString Name; +typedef ImplicitString Path; struct Src { // All Srcs must be thread safe. @@ -60,25 +61,25 @@ private: 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; }; /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ |