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

Unified Diff: tools/picture_utils.cpp

Issue 139743010: Remove more unnamed namespace usages. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: align Created 6 years, 11 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 | « experimental/StrokePathRenderer/GrStrokePathRenderer.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/picture_utils.cpp
diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp
index 7a5e156fb23173aa2e3a31bb3d46cd20451363f6..ee189ad7855cfa90683b4463197ee05ce20d0d0f 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 @@ namespace sk_tools {
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();
« no previous file with comments | « experimental/StrokePathRenderer/GrStrokePathRenderer.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698