aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
Diffstat (limited to 'bench')
-rw-r--r--bench/BlurImageFilterBench.cpp2
-rw-r--r--bench/GLBench.cpp2
-rw-r--r--bench/HardStopGradientBench_ScaleNumColors.cpp2
-rw-r--r--bench/HardStopGradientBench_ScaleNumHardStops.cpp4
-rw-r--r--bench/HardStopGradientBench_SpecialHardStops.cpp4
-rw-r--r--bench/MathBench.cpp2
6 files changed, 8 insertions, 8 deletions
diff --git a/bench/BlurImageFilterBench.cpp b/bench/BlurImageFilterBench.cpp
index 9560263f1d..5438daf789 100644
--- a/bench/BlurImageFilterBench.cpp
+++ b/bench/BlurImageFilterBench.cpp
@@ -98,7 +98,7 @@ protected:
const SkImageFilter::CropRect cropRect(bmpRect.makeInset(10.f, 10.f));
const SkImageFilter::CropRect cropRectLarge(bmpRect);
- sk_sp<SkImageFilter> input = fIsExpanded
+ sk_sp<SkImageFilter> input = fIsExpanded
? SkOffsetImageFilter::Make(0, 0, nullptr, &cropRect)
: nullptr;
diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp
index 316cca6456..10a63670fc 100644
--- a/bench/GLBench.cpp
+++ b/bench/GLBench.cpp
@@ -102,7 +102,7 @@ GrGLuint GLBench::CompileShader(const GrGLContext* context, const char* sksl, Gr
return shader;
}
-GrGLuint GLBench::CreateProgram(const GrGLContext* context, const char* vshader,
+GrGLuint GLBench::CreateProgram(const GrGLContext* context, const char* vshader,
const char* fshader) {
const GrGLInterface* gl = context->interface();
GrGLuint vertexShader = CompileShader(context, vshader, GR_GL_VERTEX_SHADER);
diff --git a/bench/HardStopGradientBench_ScaleNumColors.cpp b/bench/HardStopGradientBench_ScaleNumColors.cpp
index 108803c496..cedbd72d6b 100644
--- a/bench/HardStopGradientBench_ScaleNumColors.cpp
+++ b/bench/HardStopGradientBench_ScaleNumColors.cpp
@@ -55,7 +55,7 @@ public:
void onPreDraw(SkCanvas* canvas) override {
// Left to right
SkPoint points[2] = {
- SkPoint::Make(0, kSize/2),
+ SkPoint::Make(0, kSize/2),
SkPoint::Make(kSize-1, kSize/2),
};
diff --git a/bench/HardStopGradientBench_ScaleNumHardStops.cpp b/bench/HardStopGradientBench_ScaleNumHardStops.cpp
index 2b8b55e67a..843bb725f2 100644
--- a/bench/HardStopGradientBench_ScaleNumHardStops.cpp
+++ b/bench/HardStopGradientBench_ScaleNumHardStops.cpp
@@ -19,7 +19,7 @@ public:
HardStopGradientBench_ScaleNumHardStops(int colorCount, int hardStopCount) {
SkASSERT(hardStopCount <= colorCount/2);
- fName.printf("hardstop_scale_num_hard_stops_%03d_colors_%03d_hard_stops",
+ fName.printf("hardstop_scale_num_hard_stops_%03d_colors_%03d_hard_stops",
colorCount, hardStopCount);
fColorCount = colorCount;
@@ -37,7 +37,7 @@ public:
void onPreDraw(SkCanvas* canvas) override {
// Left to right
SkPoint points[2] = {
- SkPoint::Make(0, kSize/2),
+ SkPoint::Make(0, kSize/2),
SkPoint::Make(kSize-1, kSize/2),
};
diff --git a/bench/HardStopGradientBench_SpecialHardStops.cpp b/bench/HardStopGradientBench_SpecialHardStops.cpp
index 0a9e23e81b..e987901c67 100644
--- a/bench/HardStopGradientBench_SpecialHardStops.cpp
+++ b/bench/HardStopGradientBench_SpecialHardStops.cpp
@@ -84,7 +84,7 @@ public:
};
SkScalar* positions = fKind == Kind::k001 ? pos_001 :
- fKind == Kind::k011 ? pos_011 :
+ fKind == Kind::k011 ? pos_011 :
pos_centered;
int count = fKind == Kind::kCentered ? 4 : 3;
@@ -109,7 +109,7 @@ private:
int fW;
int fH;
Kind fKind;
- SkPaint fPaint;
+ SkPaint fPaint;
};
DEF_BENCH(return new HardStopGradientBench_SpecialHardStops(100, 100, Kind::k001););
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp
index 72161549d2..7f3408e8e4 100644
--- a/bench/MathBench.cpp
+++ b/bench/MathBench.cpp
@@ -657,7 +657,7 @@ protected:
private:
const char* fName;
-
+
typedef Benchmark INHERITED;
};
DEF_BENCH( return new Floor2IntBench(false); )