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

Unified Diff: tools/sk_tool_utils.cpp

Issue 1297283003: Fix VS 2015 build (Closed) Base URL: https://skia.googlesource.com/skia.git@nvpr
Patch Set: Created 5 years, 4 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: tools/sk_tool_utils.cpp
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp
index 6e76fc14c29d64452f4008ed0210a4c1be44658b..8d1eb44b9262c1bc06e2cd5c0a645f4b829aa2b3 100644
--- a/tools/sk_tool_utils.cpp
+++ b/tools/sk_tool_utils.cpp
@@ -234,7 +234,7 @@ void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst) {
if (tmp >= 1.0f) {
norm.set(0.0f, 0.0f, 1.0f);
} else {
- norm.fZ = sqrt(1.0f - tmp);
+ norm.fZ = sqrtf(1.0f - tmp);
}
norm_to_rgb(bm, x, y, norm);
« 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