diff options
author | zachr@google.com <zachr@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-02 15:54:30 +0000 |
---|---|---|
committer | zachr@google.com <zachr@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-02 15:54:30 +0000 |
commit | a479aa1366734f80360a00e3020f5b148cb3c060 (patch) | |
tree | 45f634109d0ed6d430f5fbbb80ce4a3b15aca797 /tools/skpdiff/skpdiff_util.h | |
parent | 89066e5cd50b81d3703b449bea242aac70833211 (diff) | |
download | platform_external_skqp-a479aa1366734f80360a00e3020f5b148cb3c060.tar.gz platform_external_skqp-a479aa1366734f80360a00e3020f5b148cb3c060.tar.bz2 platform_external_skqp-a479aa1366734f80360a00e3020f5b148cb3c060.zip |
fix skpdiff viewer bug when using relative paths
BUG=skia:1463
R=djsollen@google.com
Review URL: https://codereview.chromium.org/21601002
git-svn-id: http://skia.googlecode.com/svn/trunk@10515 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/skpdiff/skpdiff_util.h')
-rw-r--r-- | tools/skpdiff/skpdiff_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/skpdiff/skpdiff_util.h b/tools/skpdiff/skpdiff_util.h index 9df1bc0b2a..8750bf6b54 100644 --- a/tools/skpdiff/skpdiff_util.h +++ b/tools/skpdiff/skpdiff_util.h @@ -49,5 +49,12 @@ 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 absolute or relative path to expand + * @return The absolute path of the given path on success, or an empty string on failure. + */ +SkString get_absolute_path(const SkString& path); + #endif |