Higher resolution timers for bench.
http://codereview.appspot.com/4548090/
git-svn-id: http://skia.googlecode.com/svn/trunk@1534 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/Makefile.old b/Makefile.old
index 7881dfa..c78c101 100644
--- a/Makefile.old
+++ b/Makefile.old
@@ -133,7 +133,7 @@
endif
else
- LINKER_OPTS += -lpng -lfreetype
+ LINKER_OPTS += -lpng -lfreetype -lrt
DEFINES += -DSK_BUILD_FOR_UNIX -DSK_ENABLE_LIBPNG -DGR_LINUX_BUILD=1
ifeq ($(SKIA_MESA),true)
LINKER_OPTS += -lOSMesa -lGLU
@@ -203,8 +203,15 @@
##############################################################################
BENCH_SRCS := RectBench.cpp SkBenchmark.cpp benchmain.cpp BitmapBench.cpp \
- RepeatTileBench.cpp DecodeBench.cpp FPSBench.cpp PathBench.cpp \
- GradientBench.cpp MatrixBench.cpp ScalarBench.cpp
+ RepeatTileBench.cpp DecodeBench.cpp FPSBench.cpp PathBench.cpp \
+ GradientBench.cpp MatrixBench.cpp ScalarBench.cpp \
+ BenchTimer.cpp BenchGpuTimer_gl.cpp
+
+ifeq ($(SKIA_BUILD_FOR),mac)
+ BENCH_SRCS += BenchSysTimer_mach.cpp
+else
+ BENCH_SRCS += BenchSysTimer_posix.cpp
+endif
BENCH_SRCS := $(addprefix bench/, $(BENCH_SRCS))
@@ -318,4 +325,5 @@
@echo " SKIA_SCALAR=fixed for fixed-point build"
@echo " SKIA_BUILD_FOR=mac for mac build (e.g. CG for image decoding)"
@echo " SKIA_PDF_SUPPORT=false to disable the pdf generation backend"
+ @echo " SKIA_MESA=true to build with osmesa instead of native GL.
@echo ""