aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/dashing.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-15 12:53:31 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-15 12:53:31 +0000
commit5c4d5582c9d47ea47c7699fe69b9f95d0117dbd5 (patch)
tree3b8a2af2897a6896b328d58f7e892a2ec69d0e0b /gm/dashing.cpp
parentfb830981f2ec157674953650de6ddbf8723051a0 (diff)
dashing asPoints could draw excessively long first dash
https://codereview.appspot.com/7098054/ Will require rebaselining of dashing gm. git-svn-id: http://skia.googlecode.com/svn/trunk@7177 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/dashing.cpp')
-rw-r--r--gm/dashing.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gm/dashing.cpp b/gm/dashing.cpp
index 914824d885..37ea285024 100644
--- a/gm/dashing.cpp
+++ b/gm/dashing.cpp
@@ -248,6 +248,12 @@ protected:
this->drawDashedLines(canvas, 99.5f, SK_ScalarHalf, SK_Scalar1, 1, false);
canvas->restore();
+ // 255on/255off 1x1 squares with phase of 0 - rects fast path
+ canvas->save();
+ canvas->translate(446, 0);
+ this->drawDashedLines(canvas, 100, 0, SkIntToScalar(255), 1, false);
+ canvas->restore();
+
// 1on/1off 3x3 squares with phase of 0 - points fast path
canvas->save();
canvas->translate(2, 110);