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

Unified Diff: tools/Resources.cpp

Issue 373383003: ios fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: only build gyp on ios Created 6 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/Resources.h ('k') | tools/flags/SkCommandLineFlags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/Resources.cpp
diff --git a/tools/Resources.cpp b/tools/Resources.cpp
index 756d14ad3acadf235bd5c2673168b5ab4e197919..0efd66b246caf2527bc98a1ff029804e6414555b 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);
+}
« no previous file with comments | « tools/Resources.h ('k') | tools/flags/SkCommandLineFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698