summaryrefslogtreecommitdiff
path: root/chromium/third_party/skia/gm/addarc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/gm/addarc.cpp')
-rw-r--r--chromium/third_party/skia/gm/addarc.cpp14
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);