| OLD | NEW |
| 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 "SkString.h" | 11 #include "SkString.h" |
| 12 #include "SkTArray.h" | 12 #include "SkTArray.h" |
| 13 | 13 |
| 14 #if SK_SUPPORT_OPENCL | 14 #if SK_SUPPORT_OPENCL |
| 15 #if SK_BUILD_FOR_MAC | 15 #if defined(SK_BUILD_FOR_MAC) |
| 16 # include <OpenCL/cl.h> | 16 # include <OpenCL/cl.h> |
| 17 #else | 17 #else |
| 18 # include <CL/cl.h> | 18 # include <CL/cl.h> |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * Converts an OpenCL error number into the string of its enumeration name. | 22 * Converts an OpenCL error number into the string of its enumeration name. |
| 23 * @param err The OpenCL error number | 23 * @param err The OpenCL error number |
| 24 * @return The string of the name of the error; "UNKOWN" if the error number is
invalid | 24 * @return The string of the name of the error; "UNKOWN" if the error number is
invalid |
| 25 */ | 25 */ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * Gets the absolute version of the given path. | 53 * Gets the absolute version of the given path. |
| 54 * @param path The absolute or relative path to expand | 54 * @param path The absolute or relative path to expand |
| 55 * @return The absolute path of the given path on success, or an empty stri
ng on failure. | 55 * @return The absolute path of the given path on success, or an empty stri
ng on failure. |
| 56 */ | 56 */ |
| 57 SkString get_absolute_path(const SkString& path); | 57 SkString get_absolute_path(const SkString& path); |
| 58 | 58 |
| 59 | 59 |
| 60 #endif | 60 #endif |
| OLD | NEW |