cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
Mike Reed | d470673 | 2016-11-15 16:44:34 -0500 | [diff] [blame] | 7 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 8 | #include "gm/gm.h" |
Ben Wagner | d1701ba | 2019-04-30 13:44:26 -0400 | [diff] [blame] | 9 | #include "include/core/SkBlendMode.h" |
| 10 | #include "include/core/SkCanvas.h" |
| 11 | #include "include/core/SkColor.h" |
| 12 | #include "include/core/SkFont.h" |
| 13 | #include "include/core/SkPaint.h" |
Mike Reed | e9d783c | 2020-08-17 14:14:13 -0400 | [diff] [blame] | 14 | #include "include/core/SkPathBuilder.h" |
Ben Wagner | d1701ba | 2019-04-30 13:44:26 -0400 | [diff] [blame] | 15 | #include "include/core/SkPoint.h" |
| 16 | #include "include/core/SkRect.h" |
| 17 | #include "include/core/SkScalar.h" |
| 18 | #include "include/core/SkSize.h" |
| 19 | #include "include/core/SkString.h" |
| 20 | #include "include/core/SkTypeface.h" |
| 21 | #include "include/core/SkTypes.h" |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 22 | #include "include/utils/SkTextUtils.h" |
| 23 | #include "tools/ToolUtils.h" |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 24 | |
| 25 | enum { |
Mike Reed | d470673 | 2016-11-15 16:44:34 -0500 | [diff] [blame] | 26 | kXfermodeCount = (int)SkBlendMode::kLastMode + 1 + 1, // extra for arith |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 27 | kShapeSize = 22, |
| 28 | kShapeSpacing = 36, |
| 29 | kShapeTypeSpacing = 4 * kShapeSpacing / 3, |
ethannicholas | 3819d2d | 2015-12-17 10:58:28 -0800 | [diff] [blame] | 30 | kPaintSpacing = 4 * kShapeTypeSpacing, |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 31 | kLabelSpacing = 3 * kShapeSize, |
| 32 | kMargin = kShapeSpacing / 2, |
| 33 | kXfermodeTypeSpacing = kLabelSpacing + 2 * kPaintSpacing + kShapeTypeSpacing, |
| 34 | kTitleSpacing = 3 * kShapeSpacing / 4, |
| 35 | kSubtitleSpacing = 5 * kShapeSpacing / 8 |
| 36 | }; |
| 37 | |
mtklein | dbfd7ab | 2016-09-01 11:24:54 -0700 | [diff] [blame] | 38 | constexpr SkColor kBGColor = 0xc8d2b887; |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 39 | |
mtklein | dbfd7ab | 2016-09-01 11:24:54 -0700 | [diff] [blame] | 40 | constexpr SkColor kShapeColors[2] = { |
| 41 | 0x82ff0080, // input color unknown |
| 42 | 0xff00ffff, // input color opaque |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | enum Shape { |
| 46 | kSquare_Shape, |
| 47 | kDiamond_Shape, |
| 48 | kOval_Shape, |
ethannicholas | 3819d2d | 2015-12-17 10:58:28 -0800 | [diff] [blame] | 49 | kConcave_Shape, |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 50 | |
ethannicholas | 3819d2d | 2015-12-17 10:58:28 -0800 | [diff] [blame] | 51 | kLast_Shape = kConcave_Shape |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 52 | }; |
| 53 | |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 54 | /** |
| 55 | * Verifies AA works properly on all Xfermodes, including arithmetic, with both opaque and unknown |
| 56 | * src colors. |
| 57 | */ |
Mike Reed | 403d154 | 2016-09-26 18:51:24 -0400 | [diff] [blame] | 58 | class AAXfermodesGM : public skiagm::GM { |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 59 | public: |
| 60 | AAXfermodesGM() {} |
| 61 | |
| 62 | protected: |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 63 | enum DrawingPass { |
| 64 | kCheckerboard_Pass, |
| 65 | kBackground_Pass, |
| 66 | kShape_Pass |
| 67 | }; |
| 68 | |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 69 | SkString onShortName() override { |
| 70 | return SkString("aaxfermodes"); |
| 71 | } |
| 72 | |
| 73 | SkISize onISize() override { |
| 74 | return SkISize::Make(2 * kMargin + 2 * kXfermodeTypeSpacing - |
| 75 | (kXfermodeTypeSpacing - (kLabelSpacing + 2 * kPaintSpacing)), |
| 76 | 2 * kMargin + kTitleSpacing + kSubtitleSpacing + |
Mike Reed | d470673 | 2016-11-15 16:44:34 -0500 | [diff] [blame] | 77 | (1 + (int)SkBlendMode::kLastCoeffMode) * kShapeSpacing); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | void onOnceBeforeDraw() override { |
Mike Klein | ea3f014 | 2019-03-20 11:12:10 -0500 | [diff] [blame] | 81 | fLabelFont.setTypeface(ToolUtils::create_portable_typeface()); |
Mike Reed | b579f07 | 2019-01-03 15:45:53 -0500 | [diff] [blame] | 82 | fLabelFont.setSize(5 * kShapeSize/8); |
| 83 | fLabelFont.setSubpixel(true); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 84 | |
mtklein | dbfd7ab | 2016-09-01 11:24:54 -0700 | [diff] [blame] | 85 | constexpr SkScalar radius = -1.4f * kShapeSize/2; |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 86 | SkPoint pts[4] = { |
| 87 | {-radius, 0}, |
| 88 | {0, -1.33f * radius}, |
| 89 | {radius, 0}, |
| 90 | {0, 1.33f * radius} |
| 91 | }; |
Mike Reed | e9d783c | 2020-08-17 14:14:13 -0400 | [diff] [blame] | 92 | fOval = SkPathBuilder().moveTo(pts[0]) |
| 93 | .quadTo(pts[1], pts[2]) |
| 94 | .quadTo(pts[3], pts[0]) |
| 95 | .detach(); |
ethannicholas | 3819d2d | 2015-12-17 10:58:28 -0800 | [diff] [blame] | 96 | |
Mike Reed | e9d783c | 2020-08-17 14:14:13 -0400 | [diff] [blame] | 97 | fConcave = SkPathBuilder().moveTo(-radius, 0) |
| 98 | .quadTo(0, 0, 0, -radius) |
| 99 | .quadTo(0, 0, radius, 0) |
| 100 | .quadTo(0, 0, 0, radius) |
| 101 | .quadTo(0, 0, -radius, 0) |
| 102 | .close() |
| 103 | .detach(); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 104 | } |
| 105 | |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 106 | void draw_pass(SkCanvas* canvas, DrawingPass drawingPass) { |
| 107 | SkRect clipRect = |
| 108 | { -kShapeSize*11/16, -kShapeSize*11/16, kShapeSize*11/16, kShapeSize*11/16 }; |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 109 | |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 110 | canvas->save(); |
| 111 | if (kCheckerboard_Pass == drawingPass) { |
| 112 | canvas->translate(kMargin, kMargin); |
| 113 | } |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 114 | canvas->translate(0, kTitleSpacing); |
| 115 | |
| 116 | for (size_t xfermodeSet = 0; xfermodeSet < 2; xfermodeSet++) { |
Mike Reed | d470673 | 2016-11-15 16:44:34 -0500 | [diff] [blame] | 117 | size_t firstMode = ((size_t)SkBlendMode::kLastCoeffMode + 1) * xfermodeSet; |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 118 | canvas->save(); |
| 119 | |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 120 | if (kShape_Pass == drawingPass) { |
Mike Reed | 331ccfd | 2018-10-25 12:36:06 -0400 | [diff] [blame] | 121 | SkTextUtils::DrawString(canvas, "Src Unknown", |
ethannicholas | 3819d2d | 2015-12-17 10:58:28 -0800 | [diff] [blame] | 122 | kLabelSpacing + kShapeTypeSpacing * 1.5f + kShapeSpacing / 2, |
Mike Reed | b579f07 | 2019-01-03 15:45:53 -0500 | [diff] [blame] | 123 | kSubtitleSpacing / 2 + fLabelFont.getSize() / 3, fLabelFont, SkPaint(), |
Mike Reed | 3a42ec0 | 2018-10-30 12:53:21 -0400 | [diff] [blame] | 124 | SkTextUtils::kCenter_Align); |
Mike Reed | 331ccfd | 2018-10-25 12:36:06 -0400 | [diff] [blame] | 125 | SkTextUtils::DrawString(canvas, "Src Opaque", |
halcanary | 9d524f2 | 2016-03-29 09:03:52 -0700 | [diff] [blame] | 126 | kLabelSpacing + kShapeTypeSpacing * 1.5f + kShapeSpacing / 2 + |
Mike Reed | b579f07 | 2019-01-03 15:45:53 -0500 | [diff] [blame] | 127 | kPaintSpacing, kSubtitleSpacing / 2 + fLabelFont.getSize() / 3, |
| 128 | fLabelFont, SkPaint(), SkTextUtils::kCenter_Align); |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 129 | } |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 130 | |
| 131 | canvas->translate(0, kSubtitleSpacing + kShapeSpacing/2); |
| 132 | |
Mike Reed | d470673 | 2016-11-15 16:44:34 -0500 | [diff] [blame] | 133 | for (size_t m = 0; m <= (size_t)SkBlendMode::kLastCoeffMode; m++) { |
| 134 | if (firstMode + m > (size_t)SkBlendMode::kLastMode) { |
Mike Reed | 403d154 | 2016-09-26 18:51:24 -0400 | [diff] [blame] | 135 | break; |
| 136 | } |
reed | 374772b | 2016-10-05 17:33:02 -0700 | [diff] [blame] | 137 | SkBlendMode mode = static_cast<SkBlendMode>(firstMode + m); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 138 | canvas->save(); |
| 139 | |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 140 | if (kShape_Pass == drawingPass) { |
| 141 | this->drawModeName(canvas, mode); |
| 142 | } |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 143 | canvas->translate(kLabelSpacing + kShapeSpacing/2, 0); |
| 144 | |
| 145 | for (size_t colorIdx = 0; colorIdx < SK_ARRAY_COUNT(kShapeColors); colorIdx++) { |
| 146 | SkPaint paint; |
| 147 | this->setupShapePaint(canvas, kShapeColors[colorIdx], mode, &paint); |
| 148 | SkASSERT(colorIdx == 0 || 255 == paint.getAlpha()); |
| 149 | canvas->save(); |
| 150 | |
| 151 | for (size_t shapeIdx = 0; shapeIdx <= kLast_Shape; shapeIdx++) { |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 152 | if (kShape_Pass != drawingPass) { |
| 153 | canvas->save(); |
| 154 | canvas->clipRect(clipRect); |
| 155 | if (kCheckerboard_Pass == drawingPass) { |
Mike Klein | ea3f014 | 2019-03-20 11:12:10 -0500 | [diff] [blame] | 156 | ToolUtils::draw_checkerboard(canvas, 0xffffffff, 0xffc6c3c6, 10); |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 157 | } else { |
| 158 | SkASSERT(kBackground_Pass == drawingPass); |
reed | 374772b | 2016-10-05 17:33:02 -0700 | [diff] [blame] | 159 | canvas->drawColor(kBGColor, SkBlendMode::kSrc); |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 160 | } |
| 161 | canvas->restore(); |
| 162 | } else { |
| 163 | this->drawShape(canvas, static_cast<Shape>(shapeIdx), paint, mode); |
| 164 | } |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 165 | canvas->translate(kShapeTypeSpacing, 0); |
| 166 | } |
| 167 | |
| 168 | canvas->restore(); |
| 169 | canvas->translate(kPaintSpacing, 0); |
| 170 | } |
| 171 | |
| 172 | canvas->restore(); |
| 173 | canvas->translate(0, kShapeSpacing); |
| 174 | } |
| 175 | |
| 176 | canvas->restore(); |
| 177 | canvas->translate(kXfermodeTypeSpacing, 0); |
| 178 | } |
| 179 | |
| 180 | canvas->restore(); |
| 181 | } |
| 182 | |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 183 | void onDraw(SkCanvas* canvas) override { |
| 184 | draw_pass(canvas, kCheckerboard_Pass); |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 185 | canvas->saveLayer(nullptr, nullptr); |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 186 | |
| 187 | canvas->translate(kMargin, kMargin); |
| 188 | draw_pass(canvas, kBackground_Pass); |
| 189 | |
Mike Reed | b579f07 | 2019-01-03 15:45:53 -0500 | [diff] [blame] | 190 | SkFont titleFont(fLabelFont); |
| 191 | titleFont.setSize(9 * titleFont.getSize() / 8); |
| 192 | titleFont.setEmbolden(true); |
Mike Reed | 331ccfd | 2018-10-25 12:36:06 -0400 | [diff] [blame] | 193 | SkTextUtils::DrawString(canvas, "Porter Duff", |
| 194 | kLabelSpacing + 4 * kShapeTypeSpacing, |
Mike Reed | b579f07 | 2019-01-03 15:45:53 -0500 | [diff] [blame] | 195 | kTitleSpacing / 2 + titleFont.getSize() / 3, titleFont, SkPaint(), |
Mike Reed | 3a42ec0 | 2018-10-30 12:53:21 -0400 | [diff] [blame] | 196 | SkTextUtils::kCenter_Align); |
Mike Reed | 331ccfd | 2018-10-25 12:36:06 -0400 | [diff] [blame] | 197 | SkTextUtils::DrawString(canvas, "Advanced", |
| 198 | kXfermodeTypeSpacing + kLabelSpacing + 4 * kShapeTypeSpacing, |
Mike Reed | b579f07 | 2019-01-03 15:45:53 -0500 | [diff] [blame] | 199 | kTitleSpacing / 2 + titleFont.getSize() / 3, titleFont, SkPaint(), |
Mike Reed | 3a42ec0 | 2018-10-30 12:53:21 -0400 | [diff] [blame] | 200 | SkTextUtils::kCenter_Align); |
caryclark | 83ca628 | 2015-06-10 09:31:09 -0700 | [diff] [blame] | 201 | |
| 202 | draw_pass(canvas, kShape_Pass); |
| 203 | canvas->restore(); |
| 204 | } |
| 205 | |
reed | 374772b | 2016-10-05 17:33:02 -0700 | [diff] [blame] | 206 | void drawModeName(SkCanvas* canvas, SkBlendMode mode) { |
Mike Reed | d470673 | 2016-11-15 16:44:34 -0500 | [diff] [blame] | 207 | const char* modeName = SkBlendMode_Name(mode); |
Mike Reed | 331ccfd | 2018-10-25 12:36:06 -0400 | [diff] [blame] | 208 | SkTextUtils::DrawString(canvas, modeName, kLabelSpacing - kShapeSize / 4, |
Mike Reed | b579f07 | 2019-01-03 15:45:53 -0500 | [diff] [blame] | 209 | fLabelFont.getSize() / 4, fLabelFont, SkPaint(), |
Mike Reed | 3a42ec0 | 2018-10-30 12:53:21 -0400 | [diff] [blame] | 210 | SkTextUtils::kRight_Align); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 211 | } |
| 212 | |
Brian Osman | 9369031 | 2018-09-19 15:45:23 -0400 | [diff] [blame] | 213 | void setupShapePaint(SkCanvas* canvas, SkColor color, SkBlendMode mode, SkPaint* paint) { |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 214 | paint->setColor(color); |
| 215 | |
reed | 374772b | 2016-10-05 17:33:02 -0700 | [diff] [blame] | 216 | if (mode == SkBlendMode::kPlus) { |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 217 | // Check for overflow, otherwise we might get confusing AA artifacts. |
Brian Osman | 788b916 | 2020-02-07 10:36:46 -0500 | [diff] [blame] | 218 | int maxSum = std::max(std::max(SkColorGetA(kBGColor) + SkColorGetA(color), |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 219 | SkColorGetR(kBGColor) + SkColorGetR(color)), |
Brian Osman | 788b916 | 2020-02-07 10:36:46 -0500 | [diff] [blame] | 220 | std::max(SkColorGetG(kBGColor) + SkColorGetG(color), |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 221 | SkColorGetB(kBGColor) + SkColorGetB(color))); |
| 222 | |
| 223 | if (maxSum > 255) { |
| 224 | SkPaint dimPaint; |
| 225 | dimPaint.setAntiAlias(false); |
reed | 374772b | 2016-10-05 17:33:02 -0700 | [diff] [blame] | 226 | dimPaint.setBlendMode(SkBlendMode::kDstIn); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 227 | if (255 != paint->getAlpha()) { |
| 228 | // Dim the src and dst colors. |
| 229 | dimPaint.setARGB(255 * 255 / maxSum, 0, 0, 0); |
| 230 | paint->setAlpha(255 * paint->getAlpha() / maxSum); |
| 231 | } else { |
| 232 | // Just clear the dst, we need to preserve the paint's opacity. |
| 233 | dimPaint.setARGB(0, 0, 0, 0); |
| 234 | } |
Mike Reed | 3661bc9 | 2017-02-22 13:21:42 -0500 | [diff] [blame] | 235 | canvas->drawRect({ -kShapeSpacing/2, -kShapeSpacing/2, |
| 236 | kShapeSpacing/2 + 3 * kShapeTypeSpacing, kShapeSpacing/2 }, |
| 237 | dimPaint); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 238 | } |
| 239 | } |
| 240 | } |
| 241 | |
reed | 374772b | 2016-10-05 17:33:02 -0700 | [diff] [blame] | 242 | void drawShape(SkCanvas* canvas, Shape shape, const SkPaint& paint, SkBlendMode mode) { |
| 243 | SkASSERT(mode <= SkBlendMode::kLastMode); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 244 | SkPaint shapePaint(paint); |
| 245 | shapePaint.setAntiAlias(kSquare_Shape != shape); |
reed | 374772b | 2016-10-05 17:33:02 -0700 | [diff] [blame] | 246 | shapePaint.setBlendMode(mode); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 247 | |
| 248 | switch (shape) { |
| 249 | case kSquare_Shape: |
Mike Reed | 3661bc9 | 2017-02-22 13:21:42 -0500 | [diff] [blame] | 250 | canvas->drawRect({ -kShapeSize/2, -kShapeSize/2, kShapeSize/2, kShapeSize/2 }, |
| 251 | shapePaint); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 252 | break; |
| 253 | |
| 254 | case kDiamond_Shape: |
| 255 | canvas->save(); |
| 256 | canvas->rotate(45); |
Mike Reed | 3661bc9 | 2017-02-22 13:21:42 -0500 | [diff] [blame] | 257 | canvas->drawRect({ -kShapeSize/2, -kShapeSize/2, kShapeSize/2, kShapeSize/2 }, |
| 258 | shapePaint); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 259 | canvas->restore(); |
| 260 | break; |
| 261 | |
| 262 | case kOval_Shape: |
| 263 | canvas->save(); |
reed | 374772b | 2016-10-05 17:33:02 -0700 | [diff] [blame] | 264 | canvas->rotate(static_cast<SkScalar>((511 * (int)mode + 257) % 360)); |
ethannicholas | 3819d2d | 2015-12-17 10:58:28 -0800 | [diff] [blame] | 265 | canvas->drawPath(fOval, shapePaint); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 266 | canvas->restore(); |
| 267 | break; |
| 268 | |
ethannicholas | 3819d2d | 2015-12-17 10:58:28 -0800 | [diff] [blame] | 269 | case kConcave_Shape: |
| 270 | canvas->drawPath(fConcave, shapePaint); |
| 271 | break; |
| 272 | |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 273 | default: |
Ben Wagner | b4aab9a | 2017-08-16 10:53:04 -0400 | [diff] [blame] | 274 | SK_ABORT("Invalid shape."); |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 275 | } |
| 276 | } |
| 277 | |
| 278 | private: |
Mike Reed | b579f07 | 2019-01-03 15:45:53 -0500 | [diff] [blame] | 279 | SkFont fLabelFont; |
ethannicholas | 3819d2d | 2015-12-17 10:58:28 -0800 | [diff] [blame] | 280 | SkPath fOval; |
| 281 | SkPath fConcave; |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 282 | |
John Stiles | 7571f9e | 2020-09-02 22:42:33 -0400 | [diff] [blame] | 283 | using INHERITED = skiagm::GM; |
cdalton | 6fd158e | 2015-05-27 15:08:33 -0700 | [diff] [blame] | 284 | }; |
Mike Reed | 403d154 | 2016-09-26 18:51:24 -0400 | [diff] [blame] | 285 | DEF_GM( return new AAXfermodesGM; ) |