diff options
author | 2014-01-23 02:02:57 +0000 | |
---|---|---|
committer | 2014-01-23 02:02:57 +0000 | |
commit | 5a064e3af8e30d8160e9e67dbe263baf9762c9b6 (patch) | |
tree | 3c74399356a3a06cefd420cafc87199695fcc850 /experimental | |
parent | d173b8760887f9b10cd43cc99ad6b8011e269370 (diff) |
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
Diffstat (limited to 'experimental')
-rw-r--r-- | experimental/StrokePathRenderer/GrStrokePathRenderer.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp b/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp index fbfc7654bb..4b41dba5b1 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() { } |