Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: gm/dashing.cpp

Issue 1381803005: Fix gpu dashing for case where all intervals are 0. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: spelling Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrStrokeInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/dashing.cpp
diff --git a/gm/dashing.cpp b/gm/dashing.cpp
index 15e4bc278ba4a0062d7eb9a5fa9da14212882bcc..300eb776f518e8a723ccfae749b67b24a7565048 100644
--- a/gm/dashing.cpp
+++ b/gm/dashing.cpp
@@ -54,7 +54,7 @@ protected:
return SkString("dashing");
}
- SkISize onISize() { return SkISize::Make(640, 300); }
+ SkISize onISize() { return SkISize::Make(640, 340); }
virtual void onDraw(SkCanvas* canvas) {
static const struct {
@@ -90,6 +90,10 @@ protected:
show_giant_dash(canvas);
canvas->translate(0, SkIntToScalar(20));
show_zero_len_dash(canvas);
+ canvas->translate(0, SkIntToScalar(20));
+ // Draw 0 on, 0 off dashed line
+ paint.setStrokeWidth(SkIntToScalar(8));
+ drawline(canvas, 0, 0, paint);
}
};
« no previous file with comments | « no previous file | src/gpu/GrStrokeInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698