diff options
| author | suyambulingamrm <suyambu.rm@samsung.com> | 2014-07-18 18:27:27 +0530 |
|---|---|---|
| committer | suyambulingamrm <suyambu.rm@samsung.com> | 2014-07-18 18:27:27 +0530 |
| commit | bbac18889369ccdd296ce9c2a25ef18bee4da133 (patch) | |
| tree | bd58aa1ac970b0a4b7c5713c80ec2cb202285511 | |
| parent | d2fb40482089a5d333438c4f59c5e8788e15c6d8 (diff) | |
Adapt Cubic tests similar to flash canvas.
| -rw-r--r-- | src/cairo-tests/cubic.cpp | 6 | ||||
| -rw-r--r-- | src/skia-tests/cubic.cpp | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/cairo-tests/cubic.cpp b/src/cairo-tests/cubic.cpp index 64c44ef..8482292 100644 --- a/src/cairo-tests/cubic.cpp +++ b/src/cairo-tests/cubic.cpp @@ -47,9 +47,13 @@ ca_test_cubic(caskbench_context_t *ctx) cairoRandomizeColor(ctx); cairoDrawCubicCurve(ctx, &shape); + if (ctx->shape_defaults.fill_type == CB_FILL_SOLID) + cairo_fill(ctx->cairo_cr); + else + cairo_stroke(ctx->cairo_cr); } - cairo_stroke(ctx->cairo_cr); + return 1; } diff --git a/src/skia-tests/cubic.cpp b/src/skia-tests/cubic.cpp index 2c9c2e8..21091a5 100644 --- a/src/skia-tests/cubic.cpp +++ b/src/skia-tests/cubic.cpp @@ -22,6 +22,10 @@ sk_setup_cubic(caskbench_context_t *ctx) ctx->skia_paint->setAntiAlias(false); ctx->skia_paint->setStrokeWidth(1); ctx->skia_paint->setStyle(SkPaint::kStroke_Style); + if (ctx->shape_defaults.fill_type == CB_FILL_SOLID) { + ctx->skia_paint->setStyle(SkPaint::kFill_Style); + } + return 1; } |