| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 SkScalar_DEFINED | 8 #ifndef SkScalar_DEFINED |
| 9 #define SkScalar_DEFINED | 9 #define SkScalar_DEFINED |
| 10 | 10 |
| 11 #include "SkFixed.h" | 11 #include "../private/SkFixed.h" |
| 12 #include "../private/SkFloatingPoint.h" | 12 #include "../private/SkFloatingPoint.h" |
| 13 | 13 |
| 14 // TODO: move this sort of check into SkPostConfig.h | 14 // TODO: move this sort of check into SkPostConfig.h |
| 15 #define SK_SCALAR_IS_DOUBLE 0 | 15 #define SK_SCALAR_IS_DOUBLE 0 |
| 16 #undef SK_SCALAR_IS_FLOAT | 16 #undef SK_SCALAR_IS_FLOAT |
| 17 #define SK_SCALAR_IS_FLOAT 1 | 17 #define SK_SCALAR_IS_FLOAT 1 |
| 18 | 18 |
| 19 | 19 |
| 20 #if SK_SCALAR_IS_FLOAT | 20 #if SK_SCALAR_IS_FLOAT |
| 21 | 21 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 SkASSERT(n >= 0); | 265 SkASSERT(n >= 0); |
| 266 for (int i = 0; i < n; ++i) { | 266 for (int i = 0; i < n; ++i) { |
| 267 if (a[i] != b[i]) { | 267 if (a[i] != b[i]) { |
| 268 return false; | 268 return false; |
| 269 } | 269 } |
| 270 } | 270 } |
| 271 return true; | 271 return true; |
| 272 } | 272 } |
| 273 | 273 |
| 274 #endif | 274 #endif |
| OLD | NEW |