diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2013-11-27 19:03:25 -0800 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2013-11-27 19:03:25 -0800 |
| commit | 41f692367fff20ad69973f21d92ffe24bea73276 (patch) | |
| tree | fcc9d8c48919c1b1d2ae9770fa0b94ab54f73519 /src/skia-tests/rectangles.cpp | |
| parent | b5ed7231729463b73c603632dd35cabab787a68e (diff) | |
Indent 4 spaces instead of 2
Diffstat (limited to 'src/skia-tests/rectangles.cpp')
| -rw-r--r-- | src/skia-tests/rectangles.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/skia-tests/rectangles.cpp b/src/skia-tests/rectangles.cpp index 0cfa95e..81130fd 100644 --- a/src/skia-tests/rectangles.cpp +++ b/src/skia-tests/rectangles.cpp @@ -8,8 +8,8 @@ int sk_setup_rectangles(caskbench_context_t *ctx) { - ctx->skia_paint->setARGB(255, 255, 255, 255); - return 1; + ctx->skia_paint->setARGB(255, 255, 255, 255); + return 1; } void @@ -20,19 +20,19 @@ sk_teardown_rectangles(void) int sk_test_rectangles(caskbench_context_t *ctx) { - int i, x, y, w, h; - SkRect rect; + int i, x, y, w, h; + SkRect rect; - for (i=0; i<ctx->size; i++) { - ctx->skia_paint->setColor(rand()); - w = (0.5*(double)ctx->canvas_width*rand())/RAND_MAX + 1; - h = (0.5*(double)ctx->canvas_height*rand())/RAND_MAX + 1; - x = (0.5*(double)ctx->canvas_width*rand())/RAND_MAX; - y = (0.5*(double)ctx->canvas_height*rand())/RAND_MAX; - rect.set(x, y, x+w, y+h); - ctx->skia_paint->setStrokeWidth(1); - ctx->skia_canvas->drawRect(rect, *(ctx->skia_paint)); - } + for (i=0; i<ctx->size; i++) { + ctx->skia_paint->setColor(rand()); + w = (0.5*(double)ctx->canvas_width*rand())/RAND_MAX + 1; + h = (0.5*(double)ctx->canvas_height*rand())/RAND_MAX + 1; + x = (0.5*(double)ctx->canvas_width*rand())/RAND_MAX; + y = (0.5*(double)ctx->canvas_height*rand())/RAND_MAX; + rect.set(x, y, x+w, y+h); + ctx->skia_paint->setStrokeWidth(1); + ctx->skia_canvas->drawRect(rect, *(ctx->skia_paint)); + } - return 1; + return 1; } |