summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-03-22 19:29:49 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-22 19:29:49 -0700
commit55c8e9b1b75caff31e804a6f4da404da9f67af93 (patch)
treec5d5a0fc2368e42f7a55ad41473b9f3aeecdd493 /WebCore
parent50e0a1d1948f6b53b9b6ea82f865812a7b42221b (diff)
parent59debfacabb1a41953925301d55192d780a865bb (diff)
downloadexternal_webkit-55c8e9b1b75caff31e804a6f4da404da9f67af93.zip
external_webkit-55c8e9b1b75caff31e804a6f4da404da9f67af93.tar.gz
external_webkit-55c8e9b1b75caff31e804a6f4da404da9f67af93.tar.bz2
Merge "Workaround for poor dashed line performance" into honeycomb-mr1
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/graphics/android/GraphicsContextAndroid.cpp7
1 files changed, 4 insertions, 3 deletions
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());
}