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

Unified Diff: src/core/SkEdge.h

Issue 960353005: Use proper SkFDot6 instead of int (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: follow comments#6: int->SkFDot6 and remove other code Created 5 years, 9 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/core/SkEdge.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkEdge.h
diff --git a/src/core/SkEdge.h b/src/core/SkEdge.h
index 67a0ee78760476948a33ae757019d423ef4cc4b8..09c021c91829357d28e0945c6aa515d6acb129d2 100644
--- a/src/core/SkEdge.h
+++ b/src/core/SkEdge.h
@@ -120,7 +120,7 @@ int SkEdge::setLine(const SkPoint& p0, const SkPoint& p1, int shift) {
}
SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0);
- const int dy = SkEdge_Compute_DY(top, y0);
+ const SkFDot6 dy = SkEdge_Compute_DY(top, y0);
fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2
fDX = slope;
« no previous file with comments | « no previous file | src/core/SkEdge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698