From 59debfacabb1a41953925301d55192d780a865bb Mon Sep 17 00:00:00 2001 From: John Reck Date: Tue, 22 Mar 2011 19:14:16 -0700 Subject: Workaround for poor dashed line performance Bug: 4163023 Change-Id: Ie76a2f5855130ff174a80d1c7e9187bea89f3aa5 --- WebCore/platform/graphics/android/GraphicsContextAndroid.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'WebCore') diff --git a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp index 2f5a4b9..f9df8cc 100644 --- a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp +++ b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp @@ -317,9 +317,10 @@ public: } if (width > 0) { - SkScalar intervals[] = { width, width }; - pe = new SkDashPathEffect(intervals, 2, 0); - paint->setPathEffect(pe)->unref(); + // TODO: Add this back when SkDashPathEffect's performance has been improved + //SkScalar intervals[] = { width, width }; + //pe = new SkDashPathEffect(intervals, 2, 0); + //paint->setPathEffect(pe)->unref(); // Return true if we're basically a dotted dash of squares return RoundToInt(width) == RoundToInt(paint->getStrokeWidth()); } -- cgit v1.1