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

Unified Diff: gm/dashing.cpp

Issue 291903002: Real fix for Widnows build errors for GrDashingEffect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | no next file » | 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 23de24d26b7fce6be551de705a0b86204b869dc6..9868d315db80624f134dbeac3869f012e1727384 100644
--- a/gm/dashing.cpp
+++ b/gm/dashing.cpp
@@ -374,24 +374,24 @@ protected:
paint.setStrokeCap(SkPaint::kSquare_Cap);
// Single dash element that is cut off at start and end
- drawline(canvas, 32.f, 16.f, paint, 20.f, 0, 5.f);
+ drawline(canvas, 32, 16, paint, 20.f, 0, 5.f);
canvas->translate(0, SkIntToScalar(20));
// Two dash elements where each one is cut off at beginning and end respectively
- drawline(canvas, 32.f, 16.f, paint, 56.f, 0, 5.f);
+ drawline(canvas, 32, 16, paint, 56.f, 0, 5.f);
canvas->translate(0, SkIntToScalar(20));
// Many dash elements where first and last are cut off at beginning and end respectively
- drawline(canvas, 32.f, 16.f, paint, 584.f, 0, 5.f);
+ drawline(canvas, 32, 16, paint, 584.f, 0, 5.f);
canvas->translate(0, SkIntToScalar(20));
// Diagonal dash line where src pnts are not axis aligned (as apposed to being diagonal from
// a canvas rotation)
- drawline(canvas, 32.f, 16.f, paint, 600.f, 30.f);
+ drawline(canvas, 32, 16, paint, 600.f, 30.f);
canvas->translate(0, SkIntToScalar(20));
// Case where only the off interval exists on the line. Thus nothing should be drawn
- drawline(canvas, 32.f, 16.f, paint, 8.f, 0.f, 40.f);
+ drawline(canvas, 32, 16, paint, 8.f, 0.f, 40.f);
canvas->translate(0, SkIntToScalar(20));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698