Index: experimental/skpdiff/skpdiff_util.cpp |
diff --git a/experimental/skpdiff/skpdiff_util.cpp b/experimental/skpdiff/skpdiff_util.cpp |
index 3a36a12dbf510bb12238dc11af0bad2f401c9234..1cf02616eaab648a897cdfb5088c7b4904a9c66b 100644 |
--- a/experimental/skpdiff/skpdiff_util.cpp |
+++ b/experimental/skpdiff/skpdiff_util.cpp |
@@ -11,6 +11,7 @@ |
#include "SkOSFile.h" |
#include "skpdiff_util.h" |
+#if SK_SUPPORT_OPENCL |
const char* cl_error_to_string(cl_int err) { |
switch (err) { |
case CL_SUCCESS: return "CL_SUCCESS"; |
@@ -63,6 +64,7 @@ const char* cl_error_to_string(cl_int err) { |
} |
return "UNKNOWN"; |
} |
+#endif |
double get_seconds() { |