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

Unified Diff: bench/RectBench.cpp

Issue 23432008: Add explicit double -> SkScalar conversion to fix werror on Windows. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: reupload Created 7 years, 3 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: bench/RectBench.cpp
diff --git a/bench/RectBench.cpp b/bench/RectBench.cpp
index ebf270d8e346e84ac7ec8b13350f2f520808ab58..22c26456e3b264b4e99bc361924507e5a3370408 100644
--- a/bench/RectBench.cpp
+++ b/bench/RectBench.cpp
@@ -148,7 +148,7 @@ protected:
size_t sizes = SK_ARRAY_COUNT(gSizes);
if (FLAGS_strokeWidth >= 0) {
- gSizes[0] = FLAGS_strokeWidth;
+ gSizes[0] = (SkScalar)FLAGS_strokeWidth;
sizes = 1;
}
@@ -250,7 +250,7 @@ protected:
size_t sizes = SK_ARRAY_COUNT(gSizes);
if (FLAGS_strokeWidth >= 0) {
- gSizes[0] = FLAGS_strokeWidth;
+ gSizes[0] = (SkScalar)FLAGS_strokeWidth;
sizes = 1;
}
SkRandom rand;
« 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