diff options
author | Hal Canary <halcanary@google.com> | 2018-07-11 16:10:14 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-16 13:59:36 +0000 |
commit | 1419534a0079618b9c12edd74fd756e36b0523bf (patch) | |
tree | 46e83a5a3c46cdf5aa70f48c2ed73b81874f481a /src/compute/common | |
parent | 7e83f89dd67e7c66d853e78b4630450bfb406de0 (diff) |
Whitespace cleanup again
Change-Id: I38ab9ff141eb088084a4c0e664f327ceb89fcf70
Reviewed-on: https://skia-review.googlesource.com/140784
Commit-Queue: Hal Canary <halcanary@google.com>
Auto-Submit: Hal Canary <halcanary@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'src/compute/common')
-rw-r--r-- | src/compute/common/cl/assert_cl.c | 10 | ||||
-rw-r--r-- | src/compute/common/cl/assert_cl.h | 16 | ||||
-rw-r--r-- | src/compute/common/cl/find_cl.c | 12 | ||||
-rw-r--r-- | src/compute/common/util.c | 2 |
4 files changed, 20 insertions, 20 deletions
diff --git a/src/compute/common/cl/assert_cl.c b/src/compute/common/cl/assert_cl.c index 91e5620c5f..5d420586b3 100644 --- a/src/compute/common/cl/assert_cl.c +++ b/src/compute/common/cl/assert_cl.c @@ -147,7 +147,7 @@ assert_cl(cl_int const code, char const * const file, int const line, bool const // void -cl_get_event_info(cl_event event, +cl_get_event_info(cl_event event, cl_int * const status, cl_command_type * const type) { @@ -169,7 +169,7 @@ cl_get_event_info(cl_event event, } -char const * +char const * cl_get_event_command_status_string(cl_int const status) { switch (status) @@ -177,14 +177,14 @@ cl_get_event_command_status_string(cl_int const status) CL_VAL_TO_STRING(CL_QUEUED); CL_VAL_TO_STRING(CL_SUBMITTED); CL_VAL_TO_STRING(CL_RUNNING); - CL_VAL_TO_STRING(CL_COMPLETE); + CL_VAL_TO_STRING(CL_COMPLETE); default: return "UNKNOWN COMMAND STATUS"; - } + } } -char const * +char const * cl_get_event_command_type_string(cl_command_type const type) { switch (type) diff --git a/src/compute/common/cl/assert_cl.h b/src/compute/common/cl/assert_cl.h index 5481f3850f..517ada8d37 100644 --- a/src/compute/common/cl/assert_cl.h +++ b/src/compute/common/cl/assert_cl.h @@ -19,13 +19,13 @@ // // -char const * +char const * cl_get_error_string(cl_int const err); -cl_int -assert_cl(cl_int const code, - char const * const file, - int const line, +cl_int +assert_cl(cl_int const code, + char const * const file, + int const line, bool const abort); // @@ -40,14 +40,14 @@ assert_cl(cl_int const code, // void -cl_get_event_info(cl_event event, +cl_get_event_info(cl_event event, cl_int * const status, cl_command_type * const type); -char const * +char const * cl_get_event_command_status_string(cl_int const status); -char const * +char const * cl_get_event_command_type_string(cl_command_type const type); // diff --git a/src/compute/common/cl/find_cl.c b/src/compute/common/cl/find_cl.c index 43b26d1d01..a04d9ebd69 100644 --- a/src/compute/common/cl/find_cl.c +++ b/src/compute/common/cl/find_cl.c @@ -42,7 +42,7 @@ clFindIdsByName(char const * const target_platform_substring, // get number of platforms // cl_uint platform_count; - + cl(GetPlatformIDs(0,NULL,&platform_count)); cl_platform_id * const platform_ids = ALLOCA(sizeof(*platform_ids) * platform_count); @@ -94,13 +94,13 @@ clFindIdsByName(char const * const target_platform_substring, &device_count); cl_device_id * const device_ids = ALLOCA(sizeof(*device_ids) * device_count); - + cl_err = clGetDeviceIDs(platform_ids[ii], CL_DEVICE_TYPE_ALL, device_count, device_ids, NULL); - + if (cl_err != CL_DEVICE_NOT_FOUND) cl_ok(cl_err); @@ -135,7 +135,7 @@ clFindIdsByName(char const * const target_platform_substring, driver_version_size, driver_version, NULL)); - + if (!match_device && match_platform && (strstr(device_name,target_device_substring) != NULL)) { match_device = true; @@ -148,7 +148,7 @@ clFindIdsByName(char const * const target_platform_substring, if (matched_device_name_size >= 1) matched_device_name[matched_device_name_size-1] = 0; - if (matched_device_name_size > 1) + if (matched_device_name_size > 1) { bytes = MIN_MACRO(device_name_size,matched_device_name_size-1); @@ -202,7 +202,7 @@ clFindIdsByName(char const * const target_platform_substring, } return CL_SUCCESS; -} +} // // diff --git a/src/compute/common/util.c b/src/compute/common/util.c index 69710125a3..eb05d91a9f 100644 --- a/src/compute/common/util.c +++ b/src/compute/common/util.c @@ -6,7 +6,7 @@ * */ -#include <intrin.h> +#include <intrin.h> // // |