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

Unified Diff: sky/engine/platform/graphics/skia/SkiaUtils.cpp

Issue 1236953002: Roll Skia to 7b971f0152299ae9a924252a9bfd220318497bdd (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with less crash on startup Created 5 years, 5 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 | « sky/engine/platform/graphics/skia/GaneshUtils.cpp ('k') | sky/shell/gpu/ganesh_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/graphics/skia/SkiaUtils.cpp
diff --git a/sky/engine/platform/graphics/skia/SkiaUtils.cpp b/sky/engine/platform/graphics/skia/SkiaUtils.cpp
index e7d932c8432c1031096ca4e020264f8133d99991..8da890b7849cd3ec65aa6f06b9d7d3f3c2dd7546 100644
--- a/sky/engine/platform/graphics/skia/SkiaUtils.cpp
+++ b/sky/engine/platform/graphics/skia/SkiaUtils.cpp
@@ -147,7 +147,7 @@ bool SkPathContainsPoint(const SkPath& originalPath, const FloatPoint& point, Sk
biggestCoord = std::max(std::max(biggestCoord, fX + 1), fY + 1);
const SkScalar kMaxCoordinate = SkIntToScalar(1 << 15);
- SkScalar scale = SkScalarDiv(kMaxCoordinate, biggestCoord);
+ SkScalar scale = kMaxCoordinate / biggestCoord;
SkRegion rgn;
SkRegion clip;
« no previous file with comments | « sky/engine/platform/graphics/skia/GaneshUtils.cpp ('k') | sky/shell/gpu/ganesh_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698