summaryrefslogtreecommitdiffstatsci
path: root/src/skia-tests/stroke.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-05-05 22:59:41 -0700
committerBryce Harrington <b.harrington@samsung.com>2014-05-06 00:01:40 -0700
commitc99e43124f3f9ff954acdb0de091b36d3ed91f26 (patch)
tree8bb1f0c629877df758308843726dfedb023c0abe /src/skia-tests/stroke.cpp
parent9b6206001d2a05fefa1e42662b0b8db99e103a33 (diff)
Rename Shapes enum to shape_type_t and fix enum names
We already have a 'shapes' data structure, so to avoid confusion don't name our shape type enums 'Shapes'. Instead, name it shape_type_t, which is more consistent with the code style of other enums in the codebase. Also, rename Circle / Triangle / etc. to CB_SHAPE_CIRCLE / CB_SHAPE_TRIANGLE / etc. The former could be confused as class names; the latter are less likely to get confused this way, and follow the style of other enums in the codebase.
Diffstat (limited to 'src/skia-tests/stroke.cpp')
-rw-r--r--src/skia-tests/stroke.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/skia-tests/stroke.cpp b/src/skia-tests/stroke.cpp
index eafd7e3..1c3a1b9 100644
--- a/src/skia-tests/stroke.cpp
+++ b/src/skia-tests/stroke.cpp
@@ -46,7 +46,7 @@ static void drawShape(caskbench_context_t *ctx,double x,double y,kinetics_t *par
ctx->shape_args.center_x = x+r;
ctx->shape_args.center_y = y+r;
ctx->shape_args.radius = r;
- skiaShapes[Circle](ctx,&ctx->shape_args);
+ skiaShapes[CB_SHAPE_CIRCLE](ctx,&ctx->shape_args);
break;
case 2:
@@ -55,7 +55,7 @@ static void drawShape(caskbench_context_t *ctx,double x,double y,kinetics_t *par
ctx->shape_args.center_y = y;
ctx->shape_args.width = (ctx->shape_args.center_x) +((ctx->shape_args.width)?ctx->shape_args.width:2*r);
ctx->shape_args.height = (ctx->shape_args.center_y) + ((ctx->shape_args.height)?ctx->shape_args.height:2*r);
- skiaShapes[Rectangle](ctx,&ctx->shape_args);
+ skiaShapes[CB_SHAPE_RECTANGLE](ctx,&ctx->shape_args);
ctx->shape_args.width = old_width;
ctx->shape_args.height = old_height;
break;
@@ -70,7 +70,7 @@ static void drawShape(caskbench_context_t *ctx,double x,double y,kinetics_t *par
ctx->shape_args.points[1][1] = 0;
ctx->shape_args.points[2][0] = -r;
ctx->shape_args.points[2][1] = -2*r;
- skiaShapes[Triangle] (ctx,&ctx->shape_args);
+ skiaShapes[CB_SHAPE_TRIANGLE] (ctx,&ctx->shape_args);
free (ctx->shape_args.points);
break;
case 4:
@@ -84,7 +84,7 @@ static void drawShape(caskbench_context_t *ctx,double x,double y,kinetics_t *par
ctx->shape_args.points[p][0] = px;
ctx->shape_args.points[p][1] = py;
}
- skiaShapes[Star] (ctx,&ctx->shape_args);
+ skiaShapes[CB_SHAPE_STAR] (ctx,&ctx->shape_args);
free (ctx->shape_args.points);
break;