make OpenCL optional for skpdiff
- add CPU based different pixels metric
R=djsollen@google.com
Review URL: https://codereview.chromium.org/19374006
git-svn-id: http://skia.googlecode.com/svn/trunk@10127 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/skpdiff/skpdiff_util.h b/experimental/skpdiff/skpdiff_util.h
index d98175e..93090f6 100644
--- a/experimental/skpdiff/skpdiff_util.h
+++ b/experimental/skpdiff/skpdiff_util.h
@@ -8,16 +8,18 @@
#ifndef skpdiff_util_DEFINED
#define skpdiff_util_DEFINED
-#include <CL/cl.h>
#include "SkString.h"
#include "SkTArray.h"
+#if SK_SUPPORT_OPENCL
+#include <CL/cl.h>
/**
* Converts an OpenCL error number into the string of its enumeration name.
* @param err The OpenCL error number
* @return The string of the name of the error; "UNKOWN" if the error number is invalid
*/
const char* cl_error_to_string(cl_int err);
+#endif
/**
* Get a positive monotonic real-time measure of the amount of seconds since some undefined epoch.