aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleQuadStroker.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-02-24 06:02:06 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-24 06:02:06 -0800
commit1297ecfd1d1efaeee41153e491b160228ba4345a (patch)
treea2bb8d2b1fd179c17f9a34b453f798711c7a7489 /samplecode/SampleQuadStroker.cpp
parentf8d24e2c0c7b44b7ccf20e40890514db4cde7b15 (diff)
flip stroke to chrome compatible define
Diffstat (limited to 'samplecode/SampleQuadStroker.cpp')
-rw-r--r--samplecode/SampleQuadStroker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/samplecode/SampleQuadStroker.cpp b/samplecode/SampleQuadStroker.cpp
index a3863a8991..37663d22a0 100644
--- a/samplecode/SampleQuadStroker.cpp
+++ b/samplecode/SampleQuadStroker.cpp
@@ -122,7 +122,7 @@ class QuadStrokerView : public SampleView {
bool fAnimate;
bool fDrawRibs;
bool fDrawTangents;
-#if QUAD_STROKE_APPROXIMATION && defined(SK_DEBUG)
+#if !defined SK_LEGACY_STROKE_CURVES && defined(SK_DEBUG)
#define kStrokerErrorMin 0.001f
#define kStrokerErrorMax 5
#endif
@@ -529,7 +529,7 @@ protected:
if (fConicButton.fEnabled) {
draw_control(canvas, fWeightControl, fWeight, 0, 5, "weight");
}
-#if QUAD_STROKE_APPROXIMATION && defined(SK_DEBUG)
+#if !defined SK_LEGACY_STROKE_CURVES && defined(SK_DEBUG)
draw_control(canvas, fErrorControl, gDebugStrokerError, kStrokerErrorMin, kStrokerErrorMax,
"error");
#endif
@@ -561,7 +561,7 @@ protected:
if (fWeightControl.contains(rectPt)) {
return new MyClick(this, (int) SK_ARRAY_COUNT(fPts) + 1);
}
-#if QUAD_STROKE_APPROXIMATION && defined(SK_DEBUG)
+#if !defined SK_LEGACY_STROKE_CURVES && defined(SK_DEBUG)
if (fErrorControl.contains(rectPt)) {
return new MyClick(this, (int) SK_ARRAY_COUNT(fPts) + 2);
}
@@ -612,7 +612,7 @@ protected:
} else if (index == (int) SK_ARRAY_COUNT(fPts) + 1) {
fWeight = MapScreenYtoValue(click->fICurr.fY, fWeightControl, 0, 5);
}
-#if QUAD_STROKE_APPROXIMATION && defined(SK_DEBUG)
+#if !defined SK_LEGACY_STROKE_CURVES && defined(SK_DEBUG)
else if (index == (int) SK_ARRAY_COUNT(fPts) + 2) {
gDebugStrokerError = SkTMax(FLT_EPSILON, MapScreenYtoValue(click->fICurr.fY,
fErrorControl, kStrokerErrorMin, kStrokerErrorMax));