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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/skpdiff/skpdiff.gyp ('k') | experimental/skpdiff/skpdiff_util.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef skpdiff_util_DEFINED 8 #ifndef skpdiff_util_DEFINED
9 #define skpdiff_util_DEFINED 9 #define skpdiff_util_DEFINED
10 10
11 #include <CL/cl.h>
12 #include "SkString.h" 11 #include "SkString.h"
13 #include "SkTArray.h" 12 #include "SkTArray.h"
14 13
14 #if SK_SUPPORT_OPENCL
15 #include <CL/cl.h>
15 /** 16 /**
16 * Converts an OpenCL error number into the string of its enumeration name. 17 * Converts an OpenCL error number into the string of its enumeration name.
17 * @param err The OpenCL error number 18 * @param err The OpenCL error number
18 * @return The string of the name of the error; "UNKOWN" if the error number is invalid 19 * @return The string of the name of the error; "UNKOWN" if the error number is invalid
19 */ 20 */
20 const char* cl_error_to_string(cl_int err); 21 const char* cl_error_to_string(cl_int err);
22 #endif
21 23
22 /** 24 /**
23 * Get a positive monotonic real-time measure of the amount of seconds since som e undefined epoch. 25 * Get a positive monotonic real-time measure of the amount of seconds since som e undefined epoch.
24 * Maximum precision is the goal of this routine. 26 * Maximum precision is the goal of this routine.
25 * @return Amount of time in seconds since some epoch 27 * @return Amount of time in seconds since some epoch
26 */ 28 */
27 double get_seconds(); 29 double get_seconds();
28 30
29 /** 31 /**
30 * Get file entries of the given directory. 32 * Get file entries of the given directory.
31 * @param path A path to a directory to enumerate 33 * @param path A path to a directory to enumerate
32 * @param entries A vector to return the results into 34 * @param entries A vector to return the results into
33 * @return True on success, false otherwise 35 * @return True on success, false otherwise
34 */ 36 */
35 bool get_directory(const char path[], SkTArray<SkString>* entries); 37 bool get_directory(const char path[], SkTArray<SkString>* entries);
36 38
37 /** 39 /**
38 * Gets the files that match the specified pattern in sorted order. 40 * Gets the files that match the specified pattern in sorted order.
39 * @param globPattern The pattern to use. Patterns must be valid paths, optiona lly with wildcards (*) 41 * @param globPattern The pattern to use. Patterns must be valid paths, optiona lly with wildcards (*)
40 * @param entries An array to return the results into 42 * @param entries An array to return the results into
41 * @return True on success, false otherwise 43 * @return True on success, false otherwise
42 */ 44 */
43 bool glob_files(const char globPattern[], SkTArray<SkString>* entries); 45 bool glob_files(const char globPattern[], SkTArray<SkString>* entries);
44 46
45 47
46 #endif 48 #endif
OLDNEW
« 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