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 SkCLImageDiffer_DEFINED | 8 #ifndef SkCLImageDiffer_DEFINED |
9 #define SkCLImageDiffer_DEFINED | 9 #define SkCLImageDiffer_DEFINED |
10 | 10 |
11 #include <CL/cl.h> | 11 #if SK_BUILD_FOR_MAC |
| 12 # include <OpenCL/cl.h> |
| 13 #else |
| 14 # include <CL/cl.h> |
| 15 #endif |
12 #include "SkTDArray.h" | 16 #include "SkTDArray.h" |
13 | 17 |
14 #include "SkImageDiffer.h" | 18 #include "SkImageDiffer.h" |
15 | 19 |
16 class SkStream; | 20 class SkStream; |
17 | 21 |
18 /** | 22 /** |
19 * An SkImageDiffer that requires initialization with an OpenCL device and conte
xt. | 23 * An SkImageDiffer that requires initialization with an OpenCL device and conte
xt. |
20 */ | 24 */ |
21 class SkCLImageDiffer : public SkImageDiffer { | 25 class SkCLImageDiffer : public SkImageDiffer { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 cl_device_id fDevice; | 85 cl_device_id fDevice; |
82 cl_context fContext; | 86 cl_context fContext; |
83 cl_command_queue fCommandQueue; | 87 cl_command_queue fCommandQueue; |
84 | 88 |
85 private: | 89 private: |
86 | 90 |
87 typedef SkImageDiffer INHERITED; | 91 typedef SkImageDiffer INHERITED; |
88 }; | 92 }; |
89 | 93 |
90 #endif | 94 #endif |
OLD | NEW |