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

Unified Diff: gm/dashing.cpp

Issue 1876753003: adjust gm bounds for better content fit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « gm/dashcubics.cpp ('k') | gm/shadertext3.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 95fc15a9fc5b778073d54727e742de655db03d02..82e6eb35bfb46b1ea5e2fdedd8783bb66a1f2cdb 100644
--- a/gm/dashing.cpp
+++ b/gm/dashing.cpp
@@ -476,7 +476,7 @@ private:
bool fDoAA;
};
-DEF_SIMPLE_GM(longpathdash, canvas, 512, 512) {
+DEF_SIMPLE_GM(longpathdash, canvas, 612, 612) {
SkPath lines;
for (int x = 32; x < 256; x += 16) {
for (SkScalar a = 0; a < 3.141592f * 2; a += 0.03141592f) {
@@ -499,6 +499,8 @@ DEF_SIMPLE_GM(longpathdash, canvas, 512, 512) {
p.setStrokeWidth(1);
const SkScalar intervals[] = { 1, 1 };
p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0));
+
+ canvas->translate(50, 50);
canvas->drawPath(lines, p);
}
« no previous file with comments | « gm/dashcubics.cpp ('k') | gm/shadertext3.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698