blob: 756d14ad3acadf235bd5c2673168b5ab4e197919 [file] [log] [blame]
tfarinabcbc1782014-06-18 14:32:48 -07001/*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "Resources.h"
9
10#include "SkCommandLineFlags.h"
11#include "SkOSFile.h"
12
13DEFINE_string2(resourcePath, i, "resources", "Directory with test resources: images, fonts, etc.");
14
15SkString GetResourcePath(const char* resource) {
16 return SkOSPath::SkPathJoin(FLAGS_resourcePath[0], resource);
17}