diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/third_party/skia/gm/addarc.cpp | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/skia/gm/addarc.cpp')
-rw-r--r-- | chromium/third_party/skia/gm/addarc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chromium/third_party/skia/gm/addarc.cpp b/chromium/third_party/skia/gm/addarc.cpp index 77d0db7bdc6..eeed7d6ca28 100644 --- a/chromium/third_party/skia/gm/addarc.cpp +++ b/chromium/third_party/skia/gm/addarc.cpp @@ -38,7 +38,7 @@ protected: SkPaint paint; paint.setAntiAlias(true); - paint.setStyle(SkPaint::kStroke_Style); + paint.setStroke(true); paint.setStrokeWidth(15); const SkScalar inset = paint.getStrokeWidth() + 4; @@ -82,7 +82,7 @@ DEF_SIMPLE_GM(addarc_meas, canvas, 2*R + 40, 2*R + 40) { SkPaint paint; paint.setAntiAlias(true); - paint.setStyle(SkPaint::kStroke_Style); + paint.setStroke(true); SkPaint measPaint; measPaint.setAntiAlias(true); @@ -129,7 +129,7 @@ protected: SkPaint paint; paint.setAntiAlias(true); - paint.setStyle(SkPaint::kStroke_Style); + paint.setStroke(true); paint.setStrokeWidth(SK_Scalar1 / 2); const SkScalar delta = paint.getStrokeWidth() * 3 / 2; @@ -179,7 +179,7 @@ protected: SkPaint paint; paint.setAntiAlias(true); - paint.setStyle(SkPaint::kStroke_Style); + paint.setStroke(true); paint.setStrokeWidth(SK_Scalar1 / 2); const SkScalar strokeWidth = paint.getStrokeWidth(); @@ -188,7 +188,7 @@ protected: SkRandom rand; // Reset style to fill. We only need stroke stype for producing delta and strokeWidth - paint.setStyle(SkPaint::kFill_Style); + paint.setStroke(false); SkScalar sign = 1; while (r.width() > strokeWidth * 2) { @@ -229,7 +229,7 @@ static void html_canvas_arc(SkPath* path, SkScalar x, SkScalar y, SkScalar r, Sk DEF_SIMPLE_GM(manyarcs, canvas, 620, 330) { SkPaint paint; paint.setAntiAlias(true); - paint.setStyle(SkPaint::kStroke_Style); + paint.setStroke(true); canvas->translate(10, 10); @@ -274,7 +274,7 @@ DEF_SIMPLE_GM(manyarcs, canvas, 620, 330) { DEF_SIMPLE_GM(tinyanglearcs, canvas, 620, 330) { SkPaint paint; paint.setAntiAlias(true); - paint.setStyle(SkPaint::kStroke_Style); + paint.setStroke(true); canvas->translate(50, 50); |