diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-26 19:23:03 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-26 19:23:03 +0000 |
commit | 97b4b67ee79b094ea6ec84071d4a233177f9c7bc (patch) | |
tree | c615ac86c461940138f79778fbe01d0fdbe7a37c /bench/ChartBench.cpp | |
parent | 2c86fbb0b14a1f674bf56ea5ad6a086cc004a76e (diff) |
Remove uses of unnamed namespace in bench/ directory.
Skia prefers to use static over unnamed namespace.
BUG=None
TEST=None, no functional changes.
R=bsalomon@google.com, robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://chromiumcodereview.appspot.com/24660003
git-svn-id: http://skia.googlecode.com/svn/trunk@11483 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/ChartBench.cpp')
-rw-r--r-- | bench/ChartBench.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/bench/ChartBench.cpp b/bench/ChartBench.cpp index e63021fc57..ceb62b485b 100644 --- a/bench/ChartBench.cpp +++ b/bench/ChartBench.cpp @@ -1,4 +1,3 @@ - /* * Copyright 2013 Google Inc. * @@ -16,10 +15,8 @@ * to write one subclass that can be a GM, bench, and/or Sample. */ -namespace { - // Generates y values for the chart plots. -void gen_data(SkScalar yAvg, SkScalar ySpread, int count, SkTDArray<SkScalar>* dataPts) { +static void gen_data(SkScalar yAvg, SkScalar ySpread, int count, SkTDArray<SkScalar>* dataPts) { dataPts->setCount(count); static SkRandom gRandom; for (int i = 0; i < count; ++i) { @@ -32,12 +29,12 @@ void gen_data(SkScalar yAvg, SkScalar ySpread, int count, SkTDArray<SkScalar>* d // plot. The fill path is bounded below by the bottomData plot points or a horizontal line at // yBase if bottomData == NULL. // The plots are animated by rotating the data points by leftShift. -void gen_paths(const SkTDArray<SkScalar>& topData, - const SkTDArray<SkScalar>* bottomData, - SkScalar yBase, - SkScalar xLeft, SkScalar xDelta, - int leftShift, - SkPath* plot, SkPath* fill) { +static void gen_paths(const SkTDArray<SkScalar>& topData, + const SkTDArray<SkScalar>* bottomData, + SkScalar yBase, + SkScalar xLeft, SkScalar xDelta, + int leftShift, + SkPath* plot, SkPath* fill) { plot->rewind(); fill->rewind(); plot->incReserve(topData.count()); @@ -85,8 +82,6 @@ void gen_paths(const SkTDArray<SkScalar>& topData, } } -} - // A set of scrolling line plots with the area between each plot filled. Stresses out GPU path // filling class ChartBench : public SkBenchmark { |