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

Unified Diff: experimental/StrokePathRenderer/GrStrokePathRenderer.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 | « no previous file | tools/picture_utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/StrokePathRenderer/GrStrokePathRenderer.cpp
diff --git a/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp b/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp
index fbfc7654bb213cf41334ea9d53e60c73a048f950..4b41dba5b16b6afddb15ed363ee6cabf5a6ecd87 100644
--- a/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp
+++ b/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp
@@ -11,9 +11,7 @@
#include "SkPath.h"
#include "SkStrokeRec.h"
-namespace {
-
-bool is_clockwise(const SkVector& before, const SkVector& after) {
+static bool is_clockwise(const SkVector& before, const SkVector& after) {
return before.cross(after) > 0;
}
@@ -23,9 +21,9 @@ enum IntersectionType {
kOut_IntersectionType
};
-IntersectionType intersection(const SkPoint& p1, const SkPoint& p2,
- const SkPoint& p3, const SkPoint& p4,
- SkPoint& res) {
+static IntersectionType intersection(const SkPoint& p1, const SkPoint& p2,
+ const SkPoint& p3, const SkPoint& p4,
+ SkPoint& res) {
// Store the values for fast access and easy
// equations-to-code conversion
SkScalar x1 = p1.x(), x2 = p2.x(), x3 = p3.x(), x4 = p4.x();
@@ -52,8 +50,6 @@ IntersectionType intersection(const SkPoint& p1, const SkPoint& p2,
kOut_IntersectionType : kIn_IntersectionType;
}
-} // namespace
-
GrStrokePathRenderer::GrStrokePathRenderer() {
}
« no previous file with comments | « no previous file | tools/picture_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698