aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-25 14:47:48 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-25 14:47:48 +0000
commitd76007326615f3d79bf3910d5b228a48c9cb9995 (patch)
treef287f3ff60e78fa11029bf752e6550e73a6125b8 /src/effects
parentae97795901ed420a221cc1bf5d7745bb59b91389 (diff)
Hid large dashed line optimization behind compiler flag
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkDashPathEffect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp
index c6ae6b22b4..ac0b5a1fd0 100644
--- a/src/effects/SkDashPathEffect.cpp
+++ b/src/effects/SkDashPathEffect.cpp
@@ -230,6 +230,11 @@ private:
bool SkDashPathEffect::filterPath(SkPath* dst, const SkPath& src,
SkStrokeRec* rec, const SkRect* cullRect) const {
+
+#ifdef SK_IGNORE_LARGE_DASH_OPT
+ cullRect = NULL;
+#endif
+
// we do nothing if the src wants to be filled, or if our dashlength is 0
if (rec->isFillStyle() || fInitialDashLength < 0) {
return false;