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

Unified Diff: gm/lightingshader.cpp

Issue 1276133002: Fix warnings on VS2015 x86_64 build (Closed) Base URL: https://skia.googlesource.com/skia.git@didSetPipeline
Patch Set: tabs- 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 | gyp/zlib.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/lightingshader.cpp
diff --git a/gm/lightingshader.cpp b/gm/lightingshader.cpp
index 687968abb68663d7a95085bc9b79473db4d0ddcf..771c0bc2e3b333d291c89e068187b61e8df053ba 100644
--- a/gm/lightingshader.cpp
+++ b/gm/lightingshader.cpp
@@ -38,7 +38,7 @@ static SkBitmap make_hemi_normalmap(int texSize) {
locY = 0.0f;
locZ = 0.0f;
}
- locZ = sqrt(1.0f - locZ);
+ locZ = sqrtf(1.0f - locZ);
unsigned char r = static_cast<unsigned char>((0.5f * locX + 0.5f) * 255);
unsigned char g = static_cast<unsigned char>((-0.5f * locY + 0.5f) * 255);
unsigned char b = static_cast<unsigned char>((0.5f * locZ + 0.5f) * 255);
« no previous file with comments | « no previous file | gyp/zlib.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698