From f168b86d7fafc5c20c87bebc6fd393cb17e120ca Mon Sep 17 00:00:00 2001 From: tfarina Date: Thu, 19 Jun 2014 12:32:29 -0700 Subject: Remove Sk prefix from some bench classes. This idea came while commenting on https://codereview.chromium.org/343583005/ Since SkBenchmark, SkBenchLogger and SkGMBench are not part of the Skia library, they should not have the Sk prefix. BUG=None TEST=make all R=mtklein@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/347823004 --- bench/DashBench.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'bench/DashBench.cpp') diff --git a/bench/DashBench.cpp b/bench/DashBench.cpp index bbe9512245..f4d09c66f2 100644 --- a/bench/DashBench.cpp +++ b/bench/DashBench.cpp @@ -5,7 +5,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include "SkBenchmark.h" +#include "Benchmark.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkDashPathEffect.h" @@ -29,7 +29,7 @@ static void path_hline(SkPath* path) { path->lineTo(SkIntToScalar(600), SkIntToScalar(10)); } -class DashBench : public SkBenchmark { +class DashBench : public Benchmark { protected: SkString fName; SkTDArray fIntervals; @@ -94,7 +94,7 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; class RectDashBench : public DashBench { @@ -175,7 +175,7 @@ static void make_cubic(SkPath* path) { x0 + 600 * SK_Scalar1, y0); } -class MakeDashBench : public SkBenchmark { +class MakeDashBench : public Benchmark { SkString fName; SkPath fPath; SkAutoTUnref fPE; @@ -205,13 +205,13 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; /* * We try to special case square dashes (intervals are equal to strokewidth). */ -class DashLineBench : public SkBenchmark { +class DashLineBench : public Benchmark { SkString fName; SkScalar fStrokeWidth; bool fIsRound; @@ -245,10 +245,10 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; -class DrawPointsDashingBench : public SkBenchmark { +class DrawPointsDashingBench : public Benchmark { SkString fName; int fStrokeWidth; bool fDoAA; @@ -292,11 +292,11 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; // Want to test how we handle dashing when 99% of the dash is clipped out -class GiantDashBench : public SkBenchmark { +class GiantDashBench : public Benchmark { SkString fName; SkScalar fStrokeWidth; SkPoint fPts[2]; @@ -370,12 +370,12 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; // Want to test how we draw a dashed grid (like what is used in spreadsheets) of many // small dashed lines switching back and forth between horizontal and vertical -class DashGridBench : public SkBenchmark { +class DashGridBench : public Benchmark { SkString fName; int fStrokeWidth; bool fDoAA; @@ -437,7 +437,7 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3