remove (unused?) arcto patheffect
Bug: skia:
Change-Id: I80943cc495eb1edce839387f4b9512a66a4e5c11
Reviewed-on: https://skia-review.googlesource.com/25981
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/samplecode/SamplePath.cpp b/samplecode/SamplePath.cpp
index 6438dcf..0fb5287 100644
--- a/samplecode/SamplePath.cpp
+++ b/samplecode/SamplePath.cpp
@@ -208,13 +208,12 @@
//////////////////////////////////////////////////////////////////////////////
-#include "SkArcToPathEffect.h"
#include "SkCornerPathEffect.h"
#include "SkRandom.h"
class ArcToView : public SampleView {
- bool fDoFrame, fDoArcTo, fDoCorner, fDoConic;
- SkPaint fPtsPaint, fArcToPaint, fSkeletonPaint, fCornerPaint;
+ bool fDoFrame, fDoCorner, fDoConic;
+ SkPaint fPtsPaint, fSkeletonPaint, fCornerPaint;
public:
enum {
N = 4
@@ -222,7 +221,7 @@
SkPoint fPts[N];
ArcToView()
- : fDoFrame(false), fDoArcTo(false), fDoCorner(false), fDoConic(false)
+ : fDoFrame(false), fDoCorner(false), fDoConic(false)
{
SkRandom rand;
for (int i = 0; i < N; ++i) {
@@ -236,12 +235,6 @@
fPtsPaint.setStrokeWidth(15);
fPtsPaint.setStrokeCap(SkPaint::kRound_Cap);
- fArcToPaint.setAntiAlias(true);
- fArcToPaint.setStyle(SkPaint::kStroke_Style);
- fArcToPaint.setStrokeWidth(9);
- fArcToPaint.setColor(0x800000FF);
- fArcToPaint.setPathEffect(SkArcToPathEffect::Make(rad));
-
fCornerPaint.setAntiAlias(true);
fCornerPaint.setStyle(SkPaint::kStroke_Style);
fCornerPaint.setStrokeWidth(13);
@@ -269,9 +262,8 @@
if (SampleCode::CharQ(*evt, &uni)) {
switch (uni) {
case '1': this->toggle(fDoFrame); return true;
- case '2': this->toggle(fDoArcTo); return true;
- case '3': this->toggle(fDoCorner); return true;
- case '4': this->toggle(fDoConic); return true;
+ case '2': this->toggle(fDoCorner); return true;
+ case '3': this->toggle(fDoConic); return true;
default: break;
}
}
@@ -297,9 +289,6 @@
if (fDoCorner) {
canvas->drawPath(path, fCornerPaint);
}
- if (fDoArcTo) {
- canvas->drawPath(path, fArcToPaint);
- }
canvas->drawPath(path, fSkeletonPaint);
}