Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1730)

Unified Diff: dm/DMSrcSink.h

Issue 891823002: DM: paths as implict strings too. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.h
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index 67c8e5cf4f1aad7098027cb9fc3c20e77daf46b0..16f7c144eba5f43b7c0ba249244501349848155e 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;
};
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698