Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: src/core/SkStroke.h

Issue 932113002: Revive quad approximation stroker (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add macro to suppress uninitialized warning Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SampleQuadStroker.cpp ('k') | src/core/SkStroke.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStroke.h
diff --git a/src/core/SkStroke.h b/src/core/SkStroke.h
index a5446a4178fe991e06fefa296e9329c71c38097f..0574f386b35361c033a7307afbdc84c3cb336a49 100644
--- a/src/core/SkStroke.h
+++ b/src/core/SkStroke.h
@@ -13,15 +13,9 @@
#include "SkPaint.h"
#include "SkStrokerPriv.h"
-// set to 1 to use experimental outset stroking with quads
-#ifndef QUAD_STROKE_APPROXIMATION
-#define QUAD_STROKE_APPROXIMATION 0
-#endif
-
-#if QUAD_STROKE_APPROXIMATION && defined(SK_DEBUG)
+#if defined SK_QUAD_STROKE_APPROXIMATION && defined SK_DEBUG
extern bool gDebugStrokerErrorSet;
extern SkScalar gDebugStrokerError;
-
extern int gMaxRecursion[];
#endif
@@ -43,9 +37,6 @@ public:
SkPaint::Join getJoin() const { return (SkPaint::Join)fJoin; }
void setJoin(SkPaint::Join);
-#if QUAD_STROKE_APPROXIMATION
- void setError(SkScalar);
-#endif
void setMiterLimit(SkScalar);
void setWidth(SkScalar);
@@ -76,9 +67,6 @@ public:
////////////////////////////////////////////////////////////////
private:
-#if QUAD_STROKE_APPROXIMATION
- SkScalar fError;
-#endif
SkScalar fWidth, fMiterLimit;
SkScalar fResScale;
uint8_t fCap, fJoin;
« no previous file with comments | « samplecode/SampleQuadStroker.cpp ('k') | src/core/SkStroke.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698