Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: experimental/skpdiff/skpdiff_util.h

Issue 19374006: make OpenCL optional for skpdiff (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: this-> Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/skpdiff/skpdiff.gyp ('k') | experimental/skpdiff/skpdiff_util.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/skpdiff/skpdiff_util.h
diff --git a/experimental/skpdiff/skpdiff_util.h b/experimental/skpdiff/skpdiff_util.h
index d98175e038bf2fb0f791721346b3338816ea55e7..93090f61632c4cb9e58f9578f981741f393e3131 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.
« no previous file with comments | « experimental/skpdiff/skpdiff.gyp ('k') | experimental/skpdiff/skpdiff_util.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698