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

Unified Diff: tools/skpdiff/skpdiff_util.h

Issue 21601002: fix skpdiff viewer bug when using relative paths (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: mac PATH_MAX Created 7 years, 5 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 | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/skpdiff/skpdiff_util.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skpdiff/skpdiff_util.h
diff --git a/tools/skpdiff/skpdiff_util.h b/tools/skpdiff/skpdiff_util.h
index 9df1bc0b2a157f982dc49112d73fccee11a54f04..3c16a47873838603dae0605a8d19f40941c968ba 100644
--- a/tools/skpdiff/skpdiff_util.h
+++ b/tools/skpdiff/skpdiff_util.h
@@ -49,5 +49,13 @@ bool get_directory(const char path[], SkTArray<SkString>* entries);
*/
bool glob_files(const char globPattern[], SkTArray<SkString>* entries);
+/**
+ * Gets the absolute version of the given path.
+ * @param path The absoluate or relative path to expand
+ * @return A malloc'd string that contains the absolute path or NULL on failure. You must free
+ * it with free, unless it is NULL.
+ */
+char* get_absolute_path(const char path[]);
djsollen 2013/08/01 18:44:03 SkString ...(const SkString& path); That way you
+
#endif
« no previous file with comments | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/skpdiff/skpdiff_util.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698