OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | |
10 #ifndef SkGeometry_DEFINED | 8 #ifndef SkGeometry_DEFINED |
11 #define SkGeometry_DEFINED | 9 #define SkGeometry_DEFINED |
12 | 10 |
13 #include "SkMatrix.h" | 11 #include "SkMatrix.h" |
14 | 12 |
15 /** An XRay is a half-line that runs from the specific point/origin to | 13 /** An XRay is a half-line that runs from the specific point/origin to |
16 +infinity in the X direction. e.g. XRay(3,5) is the half-line | 14 +infinity in the X direction. e.g. XRay(3,5) is the half-line |
17 (3,5)....(infinity, 5) | 15 (3,5)....(infinity, 5) |
18 */ | 16 */ |
19 typedef SkPoint SkXRay; | 17 typedef SkPoint SkXRay; |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 private: | 345 private: |
348 enum { | 346 enum { |
349 kQuadCount = 8, // should handle most conics | 347 kQuadCount = 8, // should handle most conics |
350 kPointCount = 1 + 2 * kQuadCount, | 348 kPointCount = 1 + 2 * kQuadCount, |
351 }; | 349 }; |
352 SkAutoSTMalloc<kPointCount, SkPoint> fStorage; | 350 SkAutoSTMalloc<kPointCount, SkPoint> fStorage; |
353 int fQuadCount; // #quads for current usage | 351 int fQuadCount; // #quads for current usage |
354 }; | 352 }; |
355 | 353 |
356 #endif | 354 #endif |
OLD | NEW |