OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "Resources.h" | 8 #include "Resources.h" |
9 | 9 |
10 #include "SkCommandLineFlags.h" | 10 #include "SkCommandLineFlags.h" |
11 #include "SkOSFile.h" | 11 #include "SkOSFile.h" |
12 | 12 |
13 DEFINE_string2(resourcePath, i, "resources", "Directory with test resources: ima
ges, fonts, etc."); | 13 DEFINE_string2(resourcePath, i, "resources", "Directory with test resources: ima
ges, fonts, etc."); |
14 | 14 |
15 SkString GetResourcePath(const char* resource) { | 15 SkString GetResourcePath(const char* resource) { |
16 return SkOSPath::SkPathJoin(FLAGS_resourcePath[0], resource); | 16 return SkOSPath::SkPathJoin(FLAGS_resourcePath[0], resource); |
17 } | 17 } |
| 18 |
| 19 void SetResourcePath(const char* resource) { |
| 20 FLAGS_resourcePath.set(0, resource); |
| 21 } |
OLD | NEW |