| 1 |
// Copyright 2019 Google LLC. |
| 2 |
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. |
| 3 |
#include "tools/fiddle/examples.h" |
| 4 |
REG_FIDDLE(Path_SegmentMask, 256, 256, true, 0) { |
| 5 |
void draw(SkCanvas* canvas) { |
| 6 |
SkPath path = SkPathBuilder().conicTo(10, 10, 20, 30, 1).detach(); |
| 7 |
SkDebugf("Path kConic_SegmentMask is %s\n", path.getSegmentMasks() & |
| 8 |
SkPath::kConic_SegmentMask ? "set" : "clear"); |
| 9 |
SkDebugf("Path kQuad_SegmentMask is %s\n", path.getSegmentMasks() & |
| 10 |
SkPath::kQuad_SegmentMask ? "set" : "clear"); |
| 11 |
} |
| 12 |
} // END FIDDLE |