aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-02-01 11:24:53 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-01 18:19:00 +0000
commit28eaed254dcd73b42c15b73528f349cccd7797e5 (patch)
treea344776f400032405b2496eb158a6912d01ea8e0 /gm
parent48825b11ad25c98b9a4884d5cc0edd4e290c4409 (diff)
add gpu impl for shadermaskfilter
adds MulChildAlphaByInput renames MulOutputByInputAlpha --> MulChildByInputAlpha Bug: skia:7500 Change-Id: Ic0615d4d23a887fbee510901ed77a36f98a1b11d Reviewed-on: https://skia-review.googlesource.com/102440 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'gm')
-rw-r--r--gm/shadermaskfilter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gm/shadermaskfilter.cpp b/gm/shadermaskfilter.cpp
index 8011b45d41..73a9cda65f 100644
--- a/gm/shadermaskfilter.cpp
+++ b/gm/shadermaskfilter.cpp
@@ -22,6 +22,7 @@ static void draw_masked_image(SkCanvas* canvas, const SkImage* image, SkScalar x
mf = SkMaskFilter::MakeCompose(outer, mf);
}
paint.setMaskFilter(mf);
+ paint.setAntiAlias(true);
canvas->drawImage(image, x, y, &paint);
}
@@ -45,6 +46,7 @@ DEF_SIMPLE_GM(shadermaskfilter_gradient, canvas, 512, 512) {
SkPaint paint;
paint.setMaskFilter(mf);
paint.setColor(SK_ColorRED);
+ paint.setAntiAlias(true);
canvas->drawOval(r, paint);
}