Index: samplecode/SampleRegion.cpp |
diff --git a/samplecode/SampleRegion.cpp b/samplecode/SampleRegion.cpp |
index 3c5fc2e35cf0ac445c387b6f0373ac959b2b6cfc..80478443071911218151ebd1bdcb80539fbdac39 100644 |
--- a/samplecode/SampleRegion.cpp |
+++ b/samplecode/SampleRegion.cpp |
@@ -1,4 +1,3 @@ |
- |
/* |
* Copyright 2011 Google Inc. |
* |
@@ -15,6 +14,8 @@ |
#include "SkUtils.h" |
#include "SkImageDecoder.h" |
+#include <math.h> |
+ |
static void test_strokerect(SkCanvas* canvas) { |
int width = 100; |
int height = 100; |
@@ -115,11 +116,6 @@ static void test_text(SkCanvas* canvas) { |
drawFadingText(canvas, str, len, x, y, paint); |
} |
-#ifdef SK_BUILD_FOR_WIN |
-// windows doesn't have roundf |
-inline float roundf(float x) { return (x-floor(x))>0.5 ? ceil(x) : floor(x); } |
-#endif |
- |
#ifdef SK_DEBUG |
static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, |
int count, int32_t runs[]) { |