aboutsummaryrefslogtreecommitdiff
path: root/bench/TextBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/TextBench.cpp')
-rw-r--r--bench/TextBench.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/bench/TextBench.cpp b/bench/TextBench.cpp
index c28f5d77a5..881e78a0a7 100644
--- a/bench/TextBench.cpp
+++ b/bench/TextBench.cpp
@@ -15,6 +15,8 @@
#include "SkTemplates.h"
#include "SkTypeface.h"
+#ifdef SK_SUPPORT_LEGACY_PAINT_TEXTMEASURE
+
enum FontQuality {
kBW,
kAA,
@@ -175,3 +177,5 @@ DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kBW, true); )
DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kBW, true, true); )
DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kAA, false, true); )
+
+#endif