Remove more unnamed namespace usages.
Skia prefers 'static' over 'unnamed' namespaces.
BUG=None
TEST=skgpu and tools
R=robertphillips@google.com, bsalomon@google.com
Review URL: https://codereview.chromium.org/139743010
git-svn-id: http://skia.googlecode.com/svn/trunk@13146 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp
index 7a5e156..ee189ad 100644
--- a/tools/picture_utils.cpp
+++ b/tools/picture_utils.cpp
@@ -12,6 +12,14 @@
#include "SkString.h"
#include "SkStream.h"
+static bool is_path_seperator(const char chr) {
+#if defined(SK_BUILD_FOR_WIN)
+ return chr == '\\' || chr == '/';
+#else
+ return chr == '/';
+#endif
+}
+
namespace sk_tools {
void force_all_opaque(const SkBitmap& bitmap) {
SkASSERT(NULL == bitmap.getTexture());
@@ -37,16 +45,6 @@
path->append(name);
}
- namespace {
- bool is_path_seperator(const char chr) {
-#if defined(SK_BUILD_FOR_WIN)
- return chr == '\\' || chr == '/';
-#else
- return chr == '/';
-#endif
- }
- }
-
void get_basename(SkString* basename, const SkString& path) {
if (path.size() == 0) {
basename->reset();