aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrShape.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-05-04 14:11:40 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-04 19:04:03 +0000
commit91840ab06ed3635adcecfb127deca527656ed380 (patch)
tree425ba45059d084244863ef1094d5810a69663c74 /src/gpu/GrShape.cpp
parent4ede56b3a7e6390c48675106d4bd6bca4e16e0a4 (diff)
Remove unused SK_DISABLE_ARC_TO_LINE_TO_CHECK build flag
Change-Id: Ibcdb8c53a95a135a8686b3fe22df5a9d32e939c7 Reviewed-on: https://skia-review.googlesource.com/126060 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrShape.cpp')
-rw-r--r--src/gpu/GrShape.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpu/GrShape.cpp b/src/gpu/GrShape.cpp
index 189b57be80..4cab0188d9 100644
--- a/src/gpu/GrShape.cpp
+++ b/src/gpu/GrShape.cpp
@@ -373,14 +373,6 @@ void GrShape::addGenIDChangeListener(SkPathRef::GenIDChangeListener* listener) c
GrShape GrShape::MakeArc(const SkRect& oval, SkScalar startAngleDegrees, SkScalar sweepAngleDegrees,
bool useCenter, const GrStyle& style) {
-#ifdef SK_DISABLE_ARC_TO_LINE_TO_CHECK
- // When this flag is set the segment mask of the path won't match GrShape's segment mask for
- // paths. Represent this shape as a path.
- SkPath path;
- SkPathPriv::CreateDrawArcPath(&path, oval, startAngleDegrees, sweepAngleDegrees, useCenter,
- style.isSimpleFill());
- return GrShape(path, style);
-#else
GrShape result;
result.changeType(Type::kArc);
result.fArcData.fOval = oval;
@@ -391,7 +383,6 @@ GrShape GrShape::MakeArc(const SkRect& oval, SkScalar startAngleDegrees, SkScala
result.fStyle = style;
result.attemptToSimplifyArc();
return result;
-#endif
}
GrShape::GrShape(const GrShape& that) : fStyle(that.fStyle) {