Move where compression enable/disable is done to make recompilation faster.
Review URL: http://codereview.appspot.com/4354043
git-svn-id: http://skia.googlecode.com/svn/trunk@1035 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/Makefile b/Makefile
index b4aa02e..bd46b02 100644
--- a/Makefile
+++ b/Makefile
@@ -33,10 +33,8 @@
ifneq ($(SKIA_PDF_SUPPORT),false)
DEFINES += -DSK_SUPPORT_PDF
-ifneq ($(SKIA_DEBUG),true)
DEFINES += -DSK_ZLIB_INCLUDE="<zlib.h>"
endif
-endif
# start with the core (required)
include src/core/core_files.mk
diff --git a/src/core/SkFlate.cpp b/src/core/SkFlate.cpp
index ade1658..9859613 100644
--- a/src/core/SkFlate.cpp
+++ b/src/core/SkFlate.cpp
@@ -28,7 +28,11 @@
// static
bool SkFlate::HaveFlate() {
+#ifdef SK_DEBUG
+ return false;
+#else
return true;
+#endif
}
namespace {