summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/skia/tools/Resources.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/tools/Resources.cpp')
-rw-r--r--chromium/third_party/skia/tools/Resources.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/third_party/skia/tools/Resources.cpp b/chromium/third_party/skia/tools/Resources.cpp
new file mode 100644
index 00000000000..756d14ad3ac
--- /dev/null
+++ b/chromium/third_party/skia/tools/Resources.cpp
@@ -0,0 +1,17 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "Resources.h"
+
+#include "SkCommandLineFlags.h"
+#include "SkOSFile.h"
+
+DEFINE_string2(resourcePath, i, "resources", "Directory with test resources: images, fonts, etc.");
+
+SkString GetResourcePath(const char* resource) {
+ return SkOSPath::SkPathJoin(FLAGS_resourcePath[0], resource);
+}