diff options
author | John Reck <jreck@google.com> | 2011-03-22 19:29:49 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-03-22 19:29:49 -0700 |
commit | 55c8e9b1b75caff31e804a6f4da404da9f67af93 (patch) | |
tree | c5d5a0fc2368e42f7a55ad41473b9f3aeecdd493 | |
parent | 50e0a1d1948f6b53b9b6ea82f865812a7b42221b (diff) | |
parent | 59debfacabb1a41953925301d55192d780a865bb (diff) | |
download | external_webkit-55c8e9b1b75caff31e804a6f4da404da9f67af93.zip external_webkit-55c8e9b1b75caff31e804a6f4da404da9f67af93.tar.gz external_webkit-55c8e9b1b75caff31e804a6f4da404da9f67af93.tar.bz2 |
Merge "Workaround for poor dashed line performance" into honeycomb-mr1
-rw-r--r-- | WebCore/platform/graphics/android/GraphicsContextAndroid.cpp | 7 |
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()); } |