fix fixed-point build
git-svn-id: http://skia.googlecode.com/svn/trunk@3837 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp
index ec6fa12..084bdf2 100644
--- a/tests/DrawBitmapRectTest.cpp
+++ b/tests/DrawBitmapRectTest.cpp
@@ -10,6 +10,7 @@
#include "SkCanvas.h"
#include "SkShader.h"
+#ifdef SK_SCALAR_IS_FLOAT
static void assert_ifDrawnTo(skiatest::Reporter* reporter,
const SkBitmap& bm, bool shouldBeDrawn) {
for (int y = 0; y < bm.height(); ++y) {
@@ -65,6 +66,7 @@
assert_ifDrawnTo(reporter, dev, shouldBeDrawn);
}
+#endif
/*
* Original bug was asserting that the matrix-proc had generated a (Y) value
@@ -85,6 +87,7 @@
* memory allocation limit).
*/
static void test_giantrepeat_crbug118018(skiatest::Reporter* reporter) {
+#ifdef SK_SCALAR_IS_FLOAT
static const struct {
int fWidth;
int fHeight;
@@ -101,7 +104,9 @@
gTests[i].fWidth, gTests[i].fHeight,
gTests[i].fExpectedToDraw);
}
+#endif
}
+
///////////////////////////////////////////////////////////////////////////////
static void test_nan_antihair(skiatest::Reporter* reporter) {