OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #ifndef __DataTypes_h__ | 7 #ifndef __DataTypes_h__ |
8 #define __DataTypes_h__ | 8 #define __DataTypes_h__ |
9 | 9 |
10 #include <float.h> // for FLT_EPSILON | 10 #include <float.h> // for FLT_EPSILON |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 const Quadratic& second() const { return (const Quadratic&) pts[2]; } | 402 const Quadratic& second() const { return (const Quadratic&) pts[2]; } |
403 _Point pts[5]; | 403 _Point pts[5]; |
404 }; | 404 }; |
405 | 405 |
406 // FIXME: move these into SkFloatingPoint.h | 406 // FIXME: move these into SkFloatingPoint.h |
407 #include "SkFloatingPoint.h" | 407 #include "SkFloatingPoint.h" |
408 | 408 |
409 #define sk_double_isnan(a) sk_float_isnan(a) | 409 #define sk_double_isnan(a) sk_float_isnan(a) |
410 | 410 |
411 // FIXME: move these to debugging file | 411 // FIXME: move these to debugging file |
412 #if SK_DEBUG | 412 #ifdef SK_DEBUG |
413 void mathematica_ize(char* str, size_t bufferSize); | 413 void mathematica_ize(char* str, size_t bufferSize); |
414 bool valid_wind(int winding); | 414 bool valid_wind(int winding); |
415 void winding_printf(int winding); | 415 void winding_printf(int winding); |
416 #endif | 416 #endif |
417 | 417 |
418 #endif // __DataTypes_h__ | 418 #endif // __DataTypes_h__ |
OLD | NEW |