aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz/FuzzDrawFunctions.cpp
diff options
context:
space:
mode:
authorGravatar Leon Scroggins <scroggo@google.com>2017-02-17 22:48:51 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-17 22:49:03 +0000
commite005edd3a5deb602beec59f59cdc8b14d3764d58 (patch)
tree79f88cfdeebefb4eb201853ecd72e04a53ee96ca /fuzz/FuzzDrawFunctions.cpp
parentcc3c2ed9940e408b3155c073825ae9e1ca3387c5 (diff)
Revert "hide deprecated underline and strikethru"
This reverts commit a01bf9ab748836fc4bf271bd5024151bf1ce2e88. Reason for revert: Breaking Android merge. They access setUnderlineText on their <shudder> subclass of SkPaint. Original change's description: > hide deprecated underline and strikethru > > BUG=skia:6250 > > Change-Id: I85395e4960b16ab91237a74ff35e5b7588965512 > Reviewed-on: https://skia-review.googlesource.com/8600 > Reviewed-by: Ben Wagner <bungeman@google.com> > Commit-Queue: Mike Reed <reed@google.com> > TBR=bungeman@google.com,reed@google.com,reviews@skia.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia:6250 Change-Id: If55f69f061dc4439ca2faa62807a9c5694ebbeb4 Reviewed-on: https://skia-review.googlesource.com/8687 Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'fuzz/FuzzDrawFunctions.cpp')
-rw-r--r--fuzz/FuzzDrawFunctions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fuzz/FuzzDrawFunctions.cpp b/fuzz/FuzzDrawFunctions.cpp
index 521e44be2f..a30804facc 100644
--- a/fuzz/FuzzDrawFunctions.cpp
+++ b/fuzz/FuzzDrawFunctions.cpp
@@ -137,6 +137,8 @@ static void fuzz_drawText(Fuzz* fuzz, sk_sp<SkTypeface> font) {
fuzz->next(&b);
p.setLinearText(b);
fuzz->next(&b);
+ p.setStrikeThruText(b);
+ fuzz->next(&b);
p.setSubpixelText(b);
fuzz->next(&x);
p.setTextScaleX(x);
@@ -145,6 +147,8 @@ static void fuzz_drawText(Fuzz* fuzz, sk_sp<SkTypeface> font) {
fuzz->next(&x);
p.setTextSize(x);
fuzz->next(&b);
+ p.setUnderlineText(b);
+ fuzz->next(&b);
p.setVerticalText(b);
SkCanvas* cnv = surface->getCanvas();