OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 University of Szeged | 2 * Copyright (C) 2011 University of Szeged |
3 * Copyright (C) 2011 Zoltan Herczeg | 3 * Copyright (C) 2011 Zoltan Herczeg |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 12 matching lines...) Expand all Loading... |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef FELightingNEON_h | 27 #ifndef FELightingNEON_h |
28 #define FELightingNEON_h | 28 #define FELightingNEON_h |
29 | 29 |
30 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC) | 30 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC) |
31 | 31 |
32 #include "core/platform/graphics/filters/FELighting.h" | 32 #include "core/platform/graphics/filters/FELighting.h" |
33 #include <wtf/Alignment.h> | 33 #include "wtf/Alignment.h" |
34 #include <wtf/ParallelJobs.h> | 34 #include "wtf/CPU.h" |
| 35 #include "wtf/ParallelJobs.h" |
35 | 36 |
36 namespace WebCore { | 37 namespace WebCore { |
37 | 38 |
38 // Otherwise: Distant Light. | 39 // Otherwise: Distant Light. |
39 #define FLAG_POINT_LIGHT 0x01 | 40 #define FLAG_POINT_LIGHT 0x01 |
40 #define FLAG_SPOT_LIGHT 0x02 | 41 #define FLAG_SPOT_LIGHT 0x02 |
41 #define FLAG_CONE_EXPONENT_IS_1 0x04 | 42 #define FLAG_CONE_EXPONENT_IS_1 0x04 |
42 | 43 |
43 // Otherwise: Diffuse light. | 44 // Otherwise: Diffuse light. |
44 #define FLAG_SPECULAR_LIGHT 0x10 | 45 #define FLAG_SPECULAR_LIGHT 0x10 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 193 } |
193 | 194 |
194 neonDrawLighting(&neonData); | 195 neonDrawLighting(&neonData); |
195 } | 196 } |
196 | 197 |
197 } // namespace WebCore | 198 } // namespace WebCore |
198 | 199 |
199 #endif // CPU(ARM_NEON) && COMPILER(GCC) | 200 #endif // CPU(ARM_NEON) && COMPILER(GCC) |
200 | 201 |
201 #endif // FELightingNEON_h | 202 #endif // FELightingNEON_h |
OLD | NEW |