aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/Resources.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Resources.cpp')
-rw-r--r--tools/Resources.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/Resources.cpp b/tools/Resources.cpp
index 756d14ad3a..0efd66b246 100644
--- a/tools/Resources.cpp
+++ b/tools/Resources.cpp
@@ -15,3 +15,7 @@ DEFINE_string2(resourcePath, i, "resources", "Directory with test resources: ima
SkString GetResourcePath(const char* resource) {
return SkOSPath::SkPathJoin(FLAGS_resourcePath[0], resource);
}
+
+void SetResourcePath(const char* resource) {
+ FLAGS_resourcePath.set(0, resource);
+}